Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> operacje na plikach
ukaszq
post 19.11.2007, 10:50:27
Post #1





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 8.08.2007

Ostrzeżenie: (10%)
X----


Mam problem. Nie moge odczytywac pliku txt.
Tak wyglada skrypt:

  1. <?php
  2. $plik = fopen("liczba.txt","w");
  3. fwrite($plik, $wiecej);
  4. fclose($plik);
  5. echo $wiecej;
  6. ?>



A wyrzuca mi takie bledy:

Warning: fopen(liczba.txt) [function.fopen]: failed to open stream: Permission denied in /home/admin/www/demo/wiecej.php on line 35
Warning: fwrite(): supplied argument is not a valid stream resource in /home/admin/www/demo/wiecej.php on line 36
Warning: fclose(): supplied argument is not a valid stream resource in /home/admin/www/demo/wiecej.php on line 37
Go to the top of the page
+Quote Post
Cysiaczek
post 19.11.2007, 10:54:08
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Ustaw uprawnienia dla tego pliku (poprzez ftp)

Pozdrawiam.

p.s
Popraw proszę tytuł topiku na zgodny z zasadami forum Przedszkole


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
skowron-line
post 19.11.2007, 10:54:09
Post #3





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

Ostrzeżenie: (0%)
-----


Kod
Permission denied

brak dostepu do pliku. Sprawdz jego atrybuty


--------------------
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark - Muhammad Ali.
Peg jeżeli chcesz uprawiać sex to dzieci muszą wyjść, a jeżeli chcesz żeby był dobry ty też musisz wyjść - Al Bundy.

QueryBuilder, Mootools.net, bbcradio1::MistaJam
http://www.phpbench.com/
Go to the top of the page
+Quote Post
ukaszq
post 19.11.2007, 11:28:26
Post #4





Grupa: Zarejestrowani
Postów: 128
Pomógł: 0
Dołączył: 8.08.2007

Ostrzeżenie: (10%)
X----


Dziekuje, pomoglo smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 12.06.2025 - 11:06