Habe ich gemacht:
Code:
<?php
$uploaddir = 'c:/xampplite/htdocs/tausch/';
$uploadfile = $uploaddir. $_FILES['archive']['name'];
echo $_FILES['archive']['tmp_name'];
print "<pre>";
if (move_uploaded_file($_FILES['archive']['tmp_name'], $uploadfile)) {
print "File is valid, and was successfully uploaded. ";
print "Here's some more debugging info:\n";
print_r($_FILES);
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($uploadfile);
}
?>
Ich sehe keine Auswirkung des echo-Befehls. Aber der print_r($uploadfile) zeigt ja, dass $uploadfile nur den Inhalt aus $uploaddir besteht.