note 21522 deleted from function.move-uploaded-file by spic
| From: | spic@php.net | Date: | Tue, 17 Sep 2002 10:54:34 +0000 |
| Subject: | note 21522 deleted from function.move-uploaded-file by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-36816@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.