Problems with PHP upload to symlink
| From: | Fates | Date: | Sat, 15 Jul 2000 15:01:46 +0000 |
| Subject: | Problems with PHP upload to symlink | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-6743@lists.php.net to get a copy of this message | ||
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