note 29381 added to features.file-upload
| From: | dkalafus at removethis dot stanford dot thistoo dot edu | Date: | Tue, 11 Feb 2003 23:15:52 +0000 |
| Subject: | note 29381 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43804@lists.php.net to get a copy of this message | ||
On uploading files in safe mode:
We were getting errors when trying to move uploaded files with move_uploaded_file():
[error] PHP Warning: Unable to access destinationdirectory/filename.gif
This despite having the same uid/gid for the php script AND the destination directory, with the
destination directory mode 777. Even specifying an upload directory with the same uid/gid
didn't work.
Turned out that using copy() instead of move_uploaded_file() works fine. Don't know why.
(Using PHP 4.2.2)
--
http://www.php.net/manual/en/features.file-upload.php
http://master.php.net/manage/user-notes.php?action=edit+29381
http://master.php.net/manage/user-notes.php?action=delete+29381
http://master.php.net/manage/user-notes.php?action=reject+29381