note 30377 added to features.file-upload

From: Date: Sun, 16 Mar 2003 00:12:27 +0000
Subject: note 30377 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-45371@lists.php.net to get a copy of this message
As it has been mentioned above, Windows-based servers have trouble with the path to move the uploaded file to when using move_uploaded_file()... this may also be the reason copy() works and not move_uploaded_file(), but of course move_uploaded_file() is a much better method to use. The solution in the aforementioned note said you must use "\\" in the path, but I found "/" works as well. So to get a working path, I used something to the effect of: "g:/rootdir/default/www/".$_FILES['userfile']['name'] ...which worked like a charm. I am using PHP 4.3.0 on a win2k server. Hope this helps! -- http://www.php.net/manual/en/features.file-upload.php http://master.php.net/manage/user-notes.php?action=edit+30377 http://master.php.net/manage/user-notes.php?action=delete+30377 http://master.php.net/manage/user-notes.php?action=reject+30377

« previous php.notes (#45371) next »