ok i tried to make an upload script but apparently i suck
i have tried several diffrent tutorials and i just need to know whats wrong with this script
please help
heres the form on the first page
<form name="form1" method="post" action="http://www.evoltesting.f2o.org/process.php" enctype="multipart/form-data">
<input type="file" name="userfile">
<input type="submit" name="Submit" value="Submit">
</form>
and heres the php on the second page
<?php
// In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of $_FILES.
// In PHP earlier then 4.0.3, use copy() and is_uploaded_file() instead of move_uploaded_file
$uploaddir = 'http://www.evoltesting.f2o.org/www/public_html/';
print "<pre>";
if (move_uploaded_file($FILES['userfile']['tmp_name'
], $uploaddir . $FILES['userfile']['name'])) {
print "File is valid, and was successfully uploaded. Here's some more debugging info:\n";
print_r($FILES);
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($FILES);
}
?>