View Single Post
Old 11-06-2004, 09:34 PM  
Va2k
I’m still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote