Wyskakuje mi błąd:
Kod
Warning: fopen(menul.txt): failed to open stream: Permission denied in /home/miten/domains/gothic.funday.pl/acp/edit_menu.php on line 14
Warning: fwrite(): supplied argument is not a valid stream resource in /home/miten/domains/gothic.funday.pl/acp/edit_menu.php on line 15
Warning: fclose(): supplied argument is not a valid stream resource in /home/miten/domains/gothic.funday.pl/acp/edit_menu.php on line 16
Warning: fwrite(): supplied argument is not a valid stream resource in /home/miten/domains/gothic.funday.pl/acp/edit_menu.php on line 15
Warning: fclose(): supplied argument is not a valid stream resource in /home/miten/domains/gothic.funday.pl/acp/edit_menu.php on line 16
Próbowałem rozwiązać ten problem na dwóch serwerach (windowsowym i linuxowym) jednak nic to nie pomogło.
Skrypt przedstawiam poniżej.
<?php switch($_POST['menu']){ case 'Lewe': $menu="menul.txt"; break; case 'Prawe': $menu="menup.txt"; break; } if ($_POST['menu'] and $_POST['dane'] and $_GET[opm]=="zmien"){ if ($a==TRUE){ } <input type="hidden" value="'.$menu.'" name="menu"> <textarea class="textarea" name="dane" cols="69" rows="20">'.$dane.'</textarea> <br /><br /> <center><input type="submit" value="Zapisz" class="textarea"></center> </form> '); } else{ <input type="radio" name="menu" value="Lewe"> Lewe <br /> <input type="radio" name="menu" value="Prawe"> Prawe <br /><br /> <center><input type="submit" value="wyświetl" class="textarea"><input type="reset" value="wyczyść" class="textarea"></center> </form>'); } ?>

poprawiam
---
nospor