Hallo
Das ist wahrscheinlich eine blöde Frage aber ist der PHP copy() Befehl auf bplaced nicht aktiv?
Ich wollte ein Bilder-Upload ausprobieren…
aber es kommt diese Fehlermeldung:
Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/users/tillarnold/temp:/users/tillarnold/www) in /users/tillarnold/www/Upload/testbild.php on line 7
testbild.php:
<?
echo "Der Name des Files ist ".$HTTP_POST_FILES['datei']['name']."<br>";
echo "Der Grösse des Files ist ".$HTTP_POST_FILES['datei']['size']."<br>";
echo "Der File ist vom Typ: ".$HTTP_POST_FILES['datei']['type']."<br>";
echo "Der Name des Files ist ".$HTTP_POST_FILES['datei']['name']."<br>";
$dateiname=$HTTP_POST_FILES['datei']['name'];
copy($datei, "dateien//$dateiname");
echo "Der File wurde upgeloaded";
?>
upload.html:
<!DOCTYPE HTML>
<html>
<head>
<title> Bild upload direkt aus dem Browser </title>
</head>
<form action="testbild.php" enctype="multipart/form-data" method="post">
Wählen Sie eine Datei
<input type=file name=datei>
<input type=submit value=hochladen>
</form>
</body>
</html>
Es währe toll wenn ihr mir helfen könntet…
Gruss