note 107244 added to function.move-uploaded-file
| From: | Anonymous | Date: | Tue, 24 Jan 2012 13:16:24 +0000 |
| Subject: | note 107244 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185725@lists.php.net to get a copy of this message | ||
Warning move_uploaded_file failed to open stream. No such file or directory.
The path did exist as c:\wamp\www\images.
My soultion was to prefix the relative path with a dot.
For example...
move_uploaded_file( $_FILES["image"]["tmp_name"], '/images/' .
$_FILES["image"]["name"] )
...became...
move_uploaded_file( $_FILES["image"]["tmp_name"], './images/' .
$_FILES["image"]["name"] )
----
Server IP: 69.147.83.197
Probable Submitter: 62.189.77.46
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- https://master.php.net/note/edit/107244
Del: integrated -- https://master.php.net/note/delete/107244/integrated
Del: useless -- https://master.php.net/note/delete/107244/useless
Del: bad code -- https://master.php.net/note/delete/107244/bad+code
Del: spam -- https://master.php.net/note/delete/107244/spam
Del: non-english -- https://master.php.net/note/delete/107244/non-english
Del: in docs -- https://master.php.net/note/delete/107244/in+docs
Del: other reasons-- https://master.php.net/note/delete/107244
Reject -- https://master.php.net/note/reject/107244
Search -- https://master.php.net/manage/user-notes.php