Quote:
Originally posted by JupZChris
// In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead
// of $_FILES.
$uploaddir = './DIR YOU WANT PICS IN/';
$uploadfile = $uploaddir . $_FILES['uploadfile']['name'];
print "<pre>";
if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $uploadfile)) {
echo "<B>".$_FILES['uploadfile']['name']."<BR></B>";
print "File is valid, and was successfully uploaded. ";
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}
print "<REMOVETHISSPACE /pre>";
|
hahah thanks but there is a lot of hahaha what im wanting is for my members to upload their own photos and it get rated basicly lol
TOM