The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Sorry if this has been posted before, but say if i have a directory on the server which i upload to pdf files and i have a simple php login script how can i make it so only ppl that login in with the username and password can access those files, because i cant embedded a php script into the pdf files to validate the user sessions?
Thnx
Olly
header('Content-type:application/pdf');
readfile('my.pdf');
And then you can keep your directory with pdf files outside the document root or protect the directory with htaccess so the pdfs arent accessible directly.
Sorry if this has been posted before, but say if i have a directory on the server which i upload to pdf files and i have a simple php login script how can i make it so only ppl that login in with the username and password can access those files, because i cant embedded a php script into the pdf files to validate the user sessions?
Thnx
Olly