
Mam taki kod:
<?php foreach($tablica as $key => $wyraz){ $tresc="czesc"; } ?>
Ma on utowrzyć pliki html, a nazwy dla nich ma pobrać z pliku tekstowego wyrazy.txt, jednak problem polega na tym że pobiera mi tylko ostatni wyraz w pliku tekstowym, i wyskakuje taki błąd:
Cytat
Warning: fopen(plik-drugi .html) [function.fopen]: failed to open stream: Invalid argument in c:\wamp\test\index.php on line 5
Warning: fwrite(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 7
Warning: fopen(plik-trzeci.html) [function.fopen]: failed to open stream: No such file or directory in c:\wamp\test\index.php on line 5
Warning: fwrite(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 7
Warning: fwrite(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 7
Warning: fopen(plik-trzeci.html) [function.fopen]: failed to open stream: No such file or directory in c:\wamp\test\index.php on line 5
Warning: fwrite(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 6
Warning: fclose(): supplied argument is not a valid stream resource in c:\wamp\test\index.php on line 7
O co z tym chodzi?