Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6853361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:30:12+00:00 2026-05-27T01:30:12+00:00

I have been new to the PHP development area and I am working on

  • 0

I have been new to the PHP development area and I am working on a small project. In one of the requirement, after the user logs in with a unique ID, I need to search a series a PDF’s and if the login ID matches with the corresponding PDF file I need to fetch that and display that.
I have created the login form and stored the details in the database. (Here the user and the pdf have the same name to make things easy)

Now I have got a couple of questions:

  1. How can I call the PDF files, does it make sense to store them in the database or just put all the pdfs in the folder and call them from there (if so how I can do it).

  2. After getting the pdf, it should be displayed.

Any valuable information regarding this would be really helpful.

Regards
Raks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:30:12+00:00Added an answer on May 27, 2026 at 1:30 am

    You need not read the pdf for the purpose as you mentioned that to search the pdf among all the files., and just display that.
    for this you can directly display the pdf in the browser itself by just redirecting to the address of the pdf file., and the browsers automatically displays the pdf..

    Only you need to do is that, searching for the appropriate file., for this you said the login id should match with the pdf name.., you use the function file_get_contents() which returns boolean when used in a if case and check whether pdf with particular name is available and then if available redirect the user, or else tell him that its not available..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to PHP and web development in general, but have been a programmer
I'm quite new to php and have been reading Larry Ullman book to develop
Hi I am quite new to php but i have been following some tutorials
I'm new to AS3 and have been working on an XML driven navigation system
I'm new to PHP (and web development in general) and have come across something
I'm a PHP dev and I'm new to Rails but have been getting on
I am relatively new to PHP/MySQL and have been having a problem that I
I am new to PHP. I have been advised to sanitize $_GET and $_POST
I'm very new to PHP so far and have been trying to learn it.
i'm new to php , i have been searching for a tutorial regarding inserting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.