note 18148 deleted from function.move-uploaded-file by didou
| From: | didou@php.net | Date: | Thu, 18 Sep 2003 14:08:29 +0000 |
| Subject: | note 18148 deleted from function.move-uploaded-file by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56695@lists.php.net to get a copy of this message | ||
Note Submitter: tfaith@2wgmultimedia.com
----
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.