View Single Post

  #10 (permalink)  
Old 09-27-2006
Richard Lynch
 
Posts: n/a
Default Re: [PHP] Download files outside DocumentRoot Dir

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
Reply With Quote