Ich hab ein kleines Problem mit meinem Upload Script
der ordner "upfile" hat volle schreibrechte (CHMOD 777), aber ich bekomm jedes mal nen error.
Warning: move_uploaded_file(upfile/ld_off.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in httpdocs/upload/add_upload.php on line 18
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpP9uYnO' to 'upfile/ld_off.jpg' in /httpdocs/upload/add_upload.php on line 18
Woran liegt das?
PHP-Code:
$source = $_FILES['fupload']['tmp_name'];
$target = "upfile/".$_FILES['fupload']['name']."";
move_uploaded_file($source, $target);
Warning: move_uploaded_file(upfile/ld_off.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in httpdocs/upload/add_upload.php on line 18
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpP9uYnO' to 'upfile/ld_off.jpg' in /httpdocs/upload/add_upload.php on line 18
Woran liegt das?
Kommentar