note 61214 added to function.move-uploaded-file
| From: | may at dutchclan dot com | Date: | Sat, 28 Jan 2006 11:57:59 +0000 |
| Subject: | note 61214 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102616@lists.php.net to get a copy of this message | ||
also got savemode and open_file_base restrictions where owner issues prevented us from using it. But
when you remove the first "/" of the destination path it seems to work..
$source = $_FILES['userfile']['tmp_name'];
$destination = "images/uploaded/"; (without first "/")
move_uploaded_file($source, $destination);
regards, May
----
Server IP: 194.109.193.119
Probable Submitter: 82.134.166.134
----
Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61214
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61214&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61214&report=yes
Search -- http://master.php.net/manage/user-notes.php