I am trying to determine the best approach to handling files via the web.
I have a database for a web application that authenticates users (mySQL).
We want to add teh capability for users to download files within the application.
What are teh recommended methods?
Loading the files into the database?
Storing on teh o/S? If so, how do I secure them from someone directly typing direct access to them?
Any ideas or recommendations would be great.
Thanks
JE
Documents and Database Users
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
-
jestrada101
- Forum Newbie
- Posts: 2
- Joined: Wed Jan 24, 2007 1:09 pm
Thanks!
Thanks! I'll research that!
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Here is a link to the readfile() docs that has an example of a download script:
http://www.php.net/manual/en/function.r ... .php#56109
Also not that the .htaccess file would be in a directory with the files you want to protect. You would set it to deny all access.
http://www.php.net/manual/en/function.r ... .php#56109
Also not that the .htaccess file would be in a directory with the files you want to protect. You would set it to deny all access.
(#10850)