what's wrong with my code? it say's
Warning: Unable to create '': No such file or directory in /home/leetcrew/public_html/private/upload.php3 on line 8
Couldn't move file to location.
thanks in advance! 🙂
index.php3
<form enctype=\"multipart/form-data\" action=\"upload.php3\" method=POST>
<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=9999999999>
Upload this file: <input name=\"userfile\" type=\"file\">
<input type=\"submit\" value=\"Upload!\"></form>
upload.php3
<? if ($userfile=="none") {echo "No File!";
exit; }
if ($userfile_size==0) {echo "File is empty!";
exit; }
if (!is_uploaded_file($userfile)) {echo "Possible upload MIM attack!";
exit; }
$mvfile="/home/leetcrew/public_html/private".$userfile_name;
if (!copy($userfile, $upfile)) { echo "Couldn't move file to location.";
exit; }
echo "<br><b>File Upload Successful!</b><br><br>";
?>