Re: Download files outside DocumentRoot Dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux