note 34141 added to features.file-upload

From: Date: Thu, 17 Jul 2003 00:58:07 +0000
Subject: note 34141 added to features.file-upload
Groups: php.notes 
Request: Send a blank email to php-notes+get-52238@lists.php.net to get a copy of this message
I'm on a windows server and can not get these "replay" files to upload. //------The Line Below is the name the file will be saved as-------// $file = '[' . $abrev . ' ' . $countit . '] - ' . $which . $HTTP_POST_FILES['userfile']['name']; //-------// $fsize = $_FILES['userfile']['size']; $date = date('n-j-Y'); if (copy($_FILES['userfile']['tmp_name'], "d:\\I\\used\\my\\server\\path\\" . $_FILES ['userfile']['name'])) { $sql = "INSERT INTO replays VALUES ('','$file','$which','$uploader','$date',' $version','$Type', '$Length','$downloads','$MapImg','$comments', '$fsize')"; $result = mysql_query($sql) or die (mysql_error()); echo 'Successfully Uploaded...'; ?> ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34141 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34141&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34141&report=yes

« previous php.notes (#52238) next »