View Single Post

  #2 (permalink)  
Old 09-25-2006
Kae Verens
 
Posts: n/a
Default Re: Download files outside DocumentRoot Dir

Ramiro wrote:
> Hi,
> i'm trying to find a good solution to this problem. I want download files
> from a directory outside DocumentRoot.
>
> This files cannot be downloaded through direct url like
> http://site/test.zip. It must be downloaded after user login.
>
> I know i can do that using some functions like fread() + fopen() or
> readfile(), than i would echo file buffer to browser with correct headers.
> But, reading then dumping file to browser is a big problem to server.



http://ie2.php.net/fpassthru

Kae
Reply With Quote