php-general | 2000071
Date: 07/15/00
- Next message: Adam Charnock: "Re: [PHP] yahoo like php script"
- Previous message: Jeff Wilhelm: "Re: [PHP] Opening Files via HTTP"
- In reply to: Fates: "[PHP] Problems with PHP upload to symlink"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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");
Most likely a permissions problem. Use the built-in copy() function
instead of shelling out to cp. Should give you better error messages as
well.
-Rasmus
-- 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: Adam Charnock: "Re: [PHP] yahoo like php script"
- Previous message: Jeff Wilhelm: "Re: [PHP] Opening Files via HTTP"
- In reply to: Fates: "[PHP] Problems with PHP upload to symlink"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

