Code: Select all
$uploaddir = '/srv/www/vhosts/xxxxxx.de/httpdocs/pics/';
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
echo '<pre>';
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "File is valid, and was successfully uploaded.n";
} else {
echo "Possible file upload attack!n";
}
echo 'Here is some more debugging info:';
print_r($_FILES);
print "</pre>";
Possible file upload attack!
Here is some more debugging info:Array
(
[userfile] => Array
(
[name] => status_erfolgreich.gif
[type] => image/gif
[tmp_name] => /tmp/phpW9PfWo
[error] => 0
[size] => 1576
)
)
pics/ und /tmp/ stehen i.Ü. auf chmod 777.
Groteskerweise error=0 also nach
http://www.php.net/manual/de/features.f ... errors.php ok.
jemand eine Idee?