note 21522 added to function.move-uploaded-file

From: Date: Thu, 16 May 2002 00:10:53 +0000
Subject: note 21522 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-30692@lists.php.net to get a copy of this message
I get an error (open_basedir restriction is in effect, file is in the wrong directory. ) when I try to use "copy" when I upload a file from a form with a file input. I think that when php try to copy the temporal file that Apache use to store the uploaded file (usually exposed with a ramdom name in the error messages), the open_basedir restriction (asigned in php.ini) forbid the action. With move_uploaded_file() there´s no problem. -- http://www.php.net/manual/en/function.move-uploaded-file.php http://master.php.net/manage/user-notes.php?action=edit+21522 http://master.php.net/manage/user-notes.php?action=delete+21522 http://master.php.net/manage/user-notes.php?action=reject+21522

« previous php.notes (#30692) next »