I'm having some trouble... i have an upload form which passes a file upload to script upload.php, which contains the following
<?php
if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {
printf("Filename: %s",$HTTP_POST_FILES['userfile']['tempname']);
move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], "/home/sites/site57/web/painthero/");
} else {
print"Error! File not uploaded!";
}
?>
This is just a simple move command, to a directory which is chmod'd to 777, but i keep getting the following errors...
Warning: Unable to create '/home/sites/site57/web/painthero/':
Is a directory in /home/sites/site57/web/painthero/upload.php on line 4
Warning: Unable to move '/tmp/phpkFQMgI' to
'/home/sites/site57/web/painthero/' in
/home/sites/site57/web/painthero/upload.php on line 4
Please help! i'm getting desperate...
adam