Re: [PHP] ftp site From: Richard Lynch (richard <email protected>)
Date: 12/29/00

Move all those files *outside* the web tree.

Only ftp.php should be in your web-site -- The rest need to live in your
home directory (and be readable by PHP user).

----- Original Message -----
From: <manuelito.ancheta <email protected>>
Newsgroups: php.general
Sent: Friday, December 29, 2000 4:29 PM
Subject: [PHP] ftp site

> I am building a http ftp site where all it does is display content of a
> directory using ther readdir() function. It works, however, users can
still
> go the files by using http://site/dir/file.exe instead of
> http://site/ftp.php?file-file.exe . I would like my users just to be able
to
> download file using the php script.
>
> Help.
>
> ********************************
> Manny Ancheta *
> Data Communications Analyst *
> Airborne Express *
> Phone:(206)830-2319 *
> ********************************
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>