[PHP] Protecting files with PHP

2003-07-17 Thread Maria Garcia Suarez
Hi there! I'm developing an application to which you can upload files. Right now the destination folder of those files is at /public_html/files which makes them visible from the internet. I thought of putting that ./files/ folder outside the ./public_html/ folder and make those files be only

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Andrew Brampton
: Thursday, July 17, 2003 2:58 PM Subject: [PHP] Protecting files with PHP Hi there! I'm developing an application to which you can upload files. Right now the destination folder of those files is at /public_html/files which makes them visible from the internet. I thought of putting that ./files

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Petre Agenbag
If you place files inside a webfolder, then they are publicly accessible, period. They might not be obvious, ie. you would have to guess that there are files in a specific folder AND know the exact name of the file, but if you do happen to guess correct, then the files are downloadable. There

Re: [PHP] Protecting files with PHP

2003-07-17 Thread John Nichel
Petre Agenbag wrote: If you place files inside a webfolder, then they are publicly accessible, period. Not true. .htaccess turns a public directory into a private directory. Even if you know the path and filename you want, without an accepted username/password, you're not getting the file.

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Juan Nin
I need to do the same and a .htacces file would not suite the problem I need to do as yahoogroups does When you upload a file to the Files section, it send by default an e-mail to the group members with a link to the file When you click on the link, you're sent to a login page, and after login in

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Curt Zirzow
Maria Garcia Suarez [EMAIL PROTECTED] wrote: Hi there! I'm developing an application to which you can upload files. Right now the destination folder of those files is at /public_html/files which makes them visible from the internet. I thought of putting that ./files/ folder outside the

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Justin French
Read this -- it got me well and truely pointed in the right direction http://zend.com/zend/trick/tricks-august-2001.php Justin On Friday, July 18, 2003, at 01:36 AM, Juan Nin wrote: I need to do the same and a .htacces file would not suite the problem I need to do as yahoogroups does When you

[PHP] Protecting files in PHP

2002-10-01 Thread stas
Hello, I have some files off of the web root which I'd like to be able to serve up to users (*.doc, *.xls). I know I can do this with header(), but how do I reference a file that's outside of the webroot? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Protecting files in PHP

2002-10-01 Thread John W. Holmes
I have some files off of the web root which I'd like to be able to serve up to users (*.doc, *.xls). I know I can do this with header(), but how do I reference a file that's outside of the webroot? Thanks! You can use an absolute or relative path, just like any other reference. Send the