PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Pfad für tabelle


reto
18.03.2003, 12:00:35
Hallo

Also bei einem Formular wird beim absenden die IP etc. gespeichert.
/form/form.php dort ist Formular
/form/formdata.txt hier wird IP etc. gespeichert

nun möchte ich aber die .txt in ein anderes Verzeichnis verlegen.
Habe folgendes versucht, ging jedoch nicht.

$wrongsend = fopen("http://www.homepage.com/zorro/send.txt","a+");
fwrite($wrongsend, "<font size="1" face="Verdana"> $ip etc.</font><br>");
fclose($wrongsend);

Wieso akzeptiert er 'http://www.homepage.com/zorro/send.txt' nicht? vorher stand dort
'form/send.txt'. Dies ging problemlos

Wer kann das Problem lösen? danke!

Yzerman
18.03.2003, 12:37:39
probier mal die relative Pfadangabe

$wrongsend = fopen ("../zorro/send.txt","a+");

reto
21.03.2003, 23:56:16
danke für den Tipp, das habe ich natürlich auch probiert.

spuckt das übliche aus:

Warning: fopen(..data/counter.txt) [function.fopen]: failed to create stream: No such file or directory in /home/dada/public_html/kontakt/send.php on line 71

Warning: flock(): supplied argument is not a valid stream resource in /home/dada/public_html/kontakt/send.php on line 72

Warning: fputs(): supplied argument is not a valid stream resource in /home/dada/public_html/kontakt/send.php on line 73

Warning: flock(): supplied argument is not a valid stream resource in /home/dada/public_html/kontakt/send.php on line 74

Warning: fclose(): supplied argument is not a valid stream resource in /home/dada/public_html/kontakt/send.php on line 75

c4
22.03.2003, 07:00:59
Laut Fehlermeldung hast Du "fopen(..data/counter.txt)" geschrieben. Da fehlt mindestens ein / hinter den .. Daher auch "No such file or directory"