php-general | 2000071
Date: 07/15/00
- Next message: Tony Mobily: "[PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Previous message: Fates: "[PHP] Problems with PHP upload to symlink"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] Problems with PHP upload to symlink"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fates <phpnews <email protected>> writes:
> I have a php script web form that uploads a single file to the web server
> which works fine when uploading to normal directory on the web server.
> When I try to upload to a symlink created in the web directory which
> links to outside the web directory it doesn't work.
>
> Here is the line I use to copy a file:
>
> exec("cp $sound /home/html/sounds/uploads/$sound_name");
>
> The "uploads" directory is a symlink to: /usr/storage/uploads
>
> I have follow sysmlinks enabled in the browser and I can browse to the
> symlink with no problem. Why can't I upload to the symlink?
>
> I use the latest Apache with PHP-3.0.16 and Linux
Sounds like you need to enable FollowSymLinks for the uploads directory in
httpd.conf.
-- Bud Rogers <budr <email protected>> http://www.sirinet.net/~budr/zamm.html-- 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>
- Next message: Tony Mobily: "[PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Previous message: Fates: "[PHP] Problems with PHP upload to symlink"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] Problems with PHP upload to symlink"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

