Hey,
also der Code sieht so aus:
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);
}
und dann das als Eingabe:
<form enctype="multipart/form-data" action="<? echo $_SERVER['PHP_SELF']; ?>" method="post">
Dateiupload: <input type="hidden" name="flag1" id="flag1" value="1">
<input name="userfile" type="file">
|
<input type="submit" name="Submit" value="Hochladen">
</form>
Danke!
STEPHAN