By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Control PDF access via PHP?

P: 26
I am currently writing a PHP/MySQL site which requires access to a large number of manuscript pdfs for authenticated users.

I am using session variables to store log in information for restricting access to protected pages. However, the pdfs are a bit large to put into longblob fields and have kept them in a protected folder, with their links stored in the database.

Any ideas how I can allow access to the pdf files through the php pages while at the same time blocking other users who may know the folder or file name from accessing these without being logged in?
Jan 5 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.