note 18148 added to function.move-uploaded-file
| From: | tfaith at 2wgmultimedia dot com | Date: | Sat, 12 Jan 2002 01:08:46 +0000 |
| Subject: | note 18148 added to function.move-uploaded-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24724@lists.php.net to get a copy of this message | ||
Hi, for those using NT with PHP, the move_uploaded_file syntax may be confusing. There are 3 things
to remember to do: 1. the I_usr account on your server must have rights to the temp folder that php
stores its temporary files, and also to the destination folder that you wish to copy a
'good' file. 2. the syntax for the path of the move command requires both a folder and
the actual name of the posted file that is to exist on the server. eg,
'g:\\tmp\\'.$userfile_name unless, of course, you mean to save all of your files in the
root of the drive! 3. you will need to make your path with two slashes like this --
g:\\tmp\\filename -- because a single slash from php escapes the next character, and that will make
NT fretful.
--
http://www.php.net/manual/en/function.move-uploaded-file.php
http://master.php.net/manage/user-notes.php?action=edit+18148
http://master.php.net/manage/user-notes.php?action=delete+18148
http://master.php.net/manage/user-notes.php?action=reject+18148