Habe einen absoluten Pfad gesetzt:
Delphi-Quellcode:
<?php
$uploaddir = 'c:\xampplite\htdocs\tausch\';
$uploadfile = $uploaddir. $_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);
}
?>
Jetzt kommt ein Parser-Error:
Delphi-Quellcode:
[b]Parse error[/b]: parse error, unexpected T_STRING in [b]C:\xampplite\htdocs\upload.php[/b] on line [b]3[/b]
Würdest Du bitte dein PHP-Script und die Delphi-Routine einmal posten?
Danke für die Mühe!