note 29390 added to function.move-uploaded-file

From: Date: Wed, 12 Feb 2003 08:48:28 +0000
Subject: note 29390 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-43815@lists.php.net to get a copy of this message
The first comment totally threw me off. Under the 'new regime', the 'string filename' is $_FILES['userfile']['tmp_name'] Also note that the 'string destination' should be the full path and filename. As long as your server isnt using virtual hosting, you should be able to use $_SERVER['DOCUMENT_ROOT'] . "path/within/website". This'll save hours of hassle trying to get sometimes ignorant ISPs to give you your full and 'no symlinks' path. Allen -- http://www.php.net/manual/en/function.move-uploaded-file.php http://master.php.net/manage/user-notes.php?action=edit+29390 http://master.php.net/manage/user-notes.php?action=delete+29390 http://master.php.net/manage/user-notes.php?action=reject+29390

« previous php.notes (#43815) next »