hey
ich habe nich sehr viel ahnung von php das nur am anfang ich versuche jetzt seid 2 tagen einen script zu finden bzw zu schreiben der dateien uploaden soll aber bis her ging nichts ich habe mich schon durch ziemlich viele forums gelesen aber nichts passendes zu meinen problem gefunden. der script sieht so aus
<form enctype="multipart/form-data" action="upload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
Send this file: <input name="userfile" type="file"><input type="submit" value="Send File">
</form>
<?php
error_reporting(E_ALL);
$uploaddir = '/var/www/vhosts/soleverlag.de/httpdocs/';
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);
}
?>
dann zeigt er das
Warning: move_uploaded_file(/var/www/vhosts/soleverlag.de/httpdocs/ecke2.JPG) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/vhosts/soleverlag.de/httpdocs/upload.php on line 15
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpe6sgIR' to '/var/www/vhosts/httpdocs/ecke2.JPG' in /var/www/vhosts/httpdocs/upload.php on line 15
Possible file upload attack! Here's some debugging info:
Array
(
[userfile] => Array
(
[name] => ecke2.JPG
[type] => image/jpeg
[tmp_name] => /tmp/phpe6sgIR
[error] => 0
[size] => 737
)
)
kann es daran liegen das meine register_globals off ist ?