php - Best way to go about storing/accessing PDF Files -


Just a quick question (probably not)

I want to add my website in a way After logging in to the customer and once logged in, they are able to select their invoice which I will upload to my server.

My question is, what is the best way to go about collecting and accessing files, I have made some tablets and can not find much in the way of pointing me in the right direction Are there.

Thank you in advance

Get them out of an unreadable directory (www root or htaccess Protected by) and provide them with PHP

This can be done so:

  $ file = '/path/to/yourpdf.pdf'; Header ('content-type: application / pdf'); Header ('content-length:'. File size ($ file)); Readfile ($ file);  

Use PHP and SQL to determine whether the $ file and whether the user is allowed to view the file.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -