Re: [PHP] Download files outside DocumentRoot Dir

2006-09-27 Thread Christopher Weldon
Richard Lynch wrote: > On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: >> On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <[EMAIL PROTECTED]> wrote: >>> Hi Christopher, >>> at first, thank you for your answer. >>> >>> I'd like to know if it's possible use this when php is running like >>> cgi

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
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. $_SERVE

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Curt Zirzow
On 9/24/06, Ramiro <[EMAIL PROTECTED]> wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This is a standard procedure. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: > On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <[EMAIL PROTECTED]> wrote: >> Hi Christopher, >> at first, thank you for your answer. >> >> I'd like to know if it's possible use this when php is running like >> cgi (php-suexec). I've put this

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 7:52 am, Miles Thompson wrote: > $filenam = $_REQUEST["filenam"]; > if ($filenam){ > $contents = file_get_contents( "../above_root/" . > $filenam ); > echo $contents; > }else{ > echo "Not found

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Richard Lynch
On Sun, September 24, 2006 11:44 pm, Ramiro wrote: > 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

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Christopher Weldon
On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <[EMAIL PROTECTED]> wrote: > Hi Christopher, > at first, thank you for your answer. > > I'd like to know if it's possible use this when php is running like > cgi (php-suexec). I've put this code at httpd.conf at , > then tryed to use it at .htaccess, but with

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Christopher Weldon
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

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-25 Thread Miles Thompson
At 01:44 AM 9/25/2006, 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 u

[PHP] Download files outside DocumentRoot Dir

2006-09-24 Thread Ramiro
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() + fop