Mailinglisten-Archive |
>Datei anlegen: >$fp = fopen ("datei.txt", "w"); >fclose ($fp); Funktioniert einfach nicht.... ;o(( Das is mein Script: 08 $zeile="test"; 09 //Jetzt Textdatei anlegen: 10 $pc = $_SESSION["pc"]; 11 $filename = "/pc/pc_".$pc.".txt"; 12 $fp = fopen ($filename, "w"); 13 chmod ($filename, 0777); 14 fclose($fp); 15 $fp = fopen ($filename, "w"); 16 if (!fwrite($fp, $zeile)) exit; 17 fclose($fp); Warning: fopen(/pc/pc_284.txt) [function.fopen]: failed to create stream: No such file or directory in /home/epos4/public_html/php/epos4/profil/pc_open_top.php on line 12 Warning: chmod() [function.chmod]: No such file or directory in /home/epos4/public_html/php/epos4/profil/pc_open_top.php on line 13 Warning: fclose(): supplied argument is not a valid stream resource in /home/epos4/public_html/php/epos4/profil/pc_open_top.php on line 14 Warning: fopen(/pc/pc_284.txt) [function.fopen]: failed to create stream: No such file or directory in /home/epos4/public_html/php/epos4/profil/pc_open_top.php on line 15 Warning: fwrite(): supplied argument is not a valid stream resource in /home/epos4/public_html/php/epos4/profil/pc_open_top.php on line 16 Harald PS: den Ordner /pc gibts und der hat CHMOD 0777...
php::bar PHP Wiki - Listenarchive