Re: Re: alternative to protecting files through http auth.

From: Date: Fri, 16 Jan 2004 21:08:29 +0000
Subject: Re: Re: alternative to protecting files through http auth.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-174878@lists.php.net to get a copy of this message
On Saturday 17 January 2004 04:03, Scott Taylor wrote: > >Alternately, if you aren't able to create directories or access files > >outside the DocumentRoot for your site, you can create an unbrowsable > >storage directory protected with a .htaccess file. If the filesystem > >permissions are correct, your PHP script will be able to read content > >from that directory, because PHP code isn't subject to .htaccess rules. > > It actually does not work. Could you explain what, exactly, does not work? > I am trying to load a PDF file. I've tried > to load it from a protected directory loading it with headers, but this > fails if the protection is on. Does this make sense to you? The above outlines a scheme which is workable. Could you describe the steps you took to implement said scheme which lead you to the conclusion that "It actually does not work" ? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* It is not good for a man to be without knowledge, and he who makes haste with his feet misses his way. -- Proverbs 19:2 */

« previous php.general (#174878) next »