note 2201 deleted from features.file-upload by irc-html

From: Date: Sat, 19 Jan 2002 20:30:47 +0000
Subject: note 2201 deleted from features.file-upload by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25327@lists.php.net to get a copy of this message
<PRE>webmaster@l-i-e.com wrote, "If no file was uploaded, the value 'none' is stored in $userfile." If you are trying to check to see if the user put set the file to be uploaded, use the empty() function rather than the isset() function. Also, if you are running php on a Linux box and have the tmp directory in a different partition than you are want to store your file, use the copy() function rather than the rename() function. The copy() function allows files to be 'moved' from different Linux 'devices'. Basically if you are getting and error that says, 'cross-device link error', you need to use the copy() function. </PRE>

« previous php.notes (#25327) next »