A
Anonymous
Guest
i keep getting an error on my file upload script.. i cant see to find out what it is... this is the error that i get
File uploaded successfully
Warning: Unable to create '/home/xlord/public_html/hxc/level4/': Is a directory in /home/xlord/public_html/hxc/level4/upload.php on line 5
and here is my code
File uploaded successfully
Warning: Unable to create '/home/xlord/public_html/hxc/level4/': Is a directory in /home/xlord/public_html/hxc/level4/upload.php on line 5
and here is my code
Code:
<?php
if($_FILES[image] != ""){
echo" File uploaded successfully";
copy($_FILES[image][tmp_name], "/home/xlord/public_html/hxc/level4/" . $_FILES[image][NAME]);
}else{
echo "<FORM METHOD=\"POST\" ACTION=\"$PHP_SELF\" ENCTYPE=\"multipart/form-data\">
Upload image:<br>
<INPUT TYPE=\"FILE\" NAME=\"image\"><br>
<INPUT TYPE=\"submit\" NAME=\"submit\">
</FORM>
";
}
?>