note 48321 added to function.move-uploaded-file
| From: | zimmers at interaccess dot com | Date: | Sun, 19 Dec 2004 10:44:02 +0000 |
| Subject: | note 48321 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82035@lists.php.net to get a copy of this message | ||
my ISP does not have upload_tmp_dir defined; my uploaded files were landing in /tmp. for whatever
reason, my call to move_uploaded_file() was failing w/ an error about not being able to open the
stream.
the fix was to redefine upload_tmp_dir by adding this line to the .htaccess in my public_html:
php_value upload_tmp_dir /home/zim/public_html/upload
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48321
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48321&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48321&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48321&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48321&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48321&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48321&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48321&report=yes
Search -- http://master.php.net/manage/user-notes.php