PHP-Code:
<?
if (!isset($Submit)) {
?>
<form action="add.php" method="post" nctype="multipart/form-data" name="adden">
Image @ whooT?</p>
Vorschaubild
Adresse:
<input type="text" name="urluploadurl">
Image:
<INPUT TYPE=FILE NAME="File">
</p>
Url
Url: <input name="urlsite" type="text" id="urlsite">
</p>
<input type="submit" name="Submit" value="feuer">
</p>
</form>
<?
}
if (isset($Submit)) {
copy ($File, "pre/$File");
$image="pre/$File";
echo "jo $File";
$eintragen2 = "INSERT INTO gal0r (id,vorschau,url) VALUES ('', '$image', '$urlsite')";
$eintragen3 = mysql_query($eintragen2) OR die(mysql_error());;
}
?>
Ordner Hierarchie ist genau die gleiche blubb/gal0r/pre , alle haben 777 CHMOD ! und gal0r liegt diese Datei und soll halt das Bild in /pre haun, ich weiss nicht was ich noch tun soll... Fehlermeldung ist folgende:
Warning: copy(heartbg.jpg) [function.copy]: failed to open stream: No such file or directory in /home/.pegs/sanz/test.net/gal0r/add.php on line 34
jo heartbg.jpg
und line 34 ist nunmal -> copy ($File, "pre/$File");
hoffe mir kann jeman dhelfen!
Gruß

Kommentar