[PHP] BŁĄD

0

napsałem księge gości w php na plikach txt i u mnie jest wszystko k. ale na serwerze na host.sk już nie jest tak kolorowo. wywala błędy z dostępem chyba UWAGA:

Warning: fopen(dane/numer.txt): failed to open stream: Permission denied in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 20

Warning: flock(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 21

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 22

Warning: flock(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 23

Warning: fclose(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 24

Warning: fopen(dane/dane.txt): failed to open stream: Permission denied in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 26

Warning: flock(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 27

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 28

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 29

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 30

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 31

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 32

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 33

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 34

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 35

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 36

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 37

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 39

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 40

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 41

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 42

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 43

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 44

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 45

Warning: flock(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 46

Warning: fclose(): supplied argument is not a valid stream resource in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 47

no i ... jak ktoś wiedziałby coś na ten topic to niech napisze coś. czy potrzeba czego tec. itp. itd.

0

Warning: fopen(dane/numer.txt): failed to open stream: Permission denied in /mnt/host-users/a/k/t/aktywisci/gb/thx.php on line 20

Niesamowite :-D to może byś tak pokombinowała z prawami pliku numer.txt i folderu dane, np. nadaj wszystkiemu co się rusza 777 i zobacz czy błędy nadal się pokazują...

// a nie bezpieczniej 606? - ŁF

0

Wszystkie pliki do których zapisujesz musisz obraczyć CHMODem 777, żeby skrypt mógł zapisywać do nich.

I staraj sobie zapamiętać - jak widzisz permission denied to to jest w wiekszosc przypadków (a moze wszystkich? :-) ) CHMOD - czyli prawa dostępu.

0

thx za rade

0

no nadal jest źle
nawet jak wstawiłem chmod w miejscu które jest ok to jest błąd

1 użytkowników online, w tym zalogowanych: 0, gości: 1