Re: Download files outside DocumentRoot Dir
| From: | Richard Lynch | Date: | Tue, 26 Sep 2006 23:48:59 +0000 |
| Subject: | Re: Download files outside DocumentRoot Dir | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242268@lists.php.net to get a copy of this message | ||
On Tue, September 26, 2006 6:29 pm, Curt Zirzow wrote:
>> This files cannot be downloaded through direct url like
>> http://site/test.zip. It must be downloaded after user
>> login.
>
> This will need some sort of rewrite or 404 handling on the webserver
> level
Au contraire, my good friend.
$_SERVER['PATH_INFO'] and judicious usage of ForceType is much simpler
and less stressful than mod_rewrite and 404 handling :-)
I used mod_rewrite exactly once. Man, that was painful...
--
Like Music?
http://l-i-e.com/artists.htm