note 29381 deleted from features.file-upload by didou

From: Date: Mon, 23 Jun 2003 11:50:33 +0000
Subject: note 29381 deleted from features.file-upload by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-50865@lists.php.net to get a copy of this message
Note Submitter: dkalafus@removethis.stanford.thistoo.edu ---- 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)

« previous php.notes (#50865) next »