Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Problem z fopen (http)
edwarpan
post
Post #1





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 28.04.2010

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


  1. <?
  2. $redeem = "no";
  3. $file = "http://78.47.230.2/refreshowane.txt";
  4.  
  5. $ciag = "$redeem";
  6. $zapis = str_replace("$ "," $",$ciag);
  7. $open = fopen("$file", "w+");
  8. fputs($open, $zapis);
  9. fclose($open);
  10. ?>

Nie działa, plik refreshowane.txt ma chmody 777.
Error wychodzący :
Warning: fopen(http://78.47.230.2/refreshowane.txt) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections in /home/x/niejest.php on line 7

Warning: fputs(): supplied argument is not a valid stream resource in /home/x/niejest.php on line 8

Warning: fclose(): supplied argument is not a valid stream resource in /home/x/niejest.php on line 9
Go to the top of the page
+Quote Post
foxbond
post
Post #2





Grupa: Zarejestrowani
Postów: 162
Pomógł: 12
Dołączył: 20.12.2009
Skąd: Siedlce

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


Błąd mówi sam za siebie.

Tymi funkcjami nie da się zmienić pliku na innym serwerze.

Zainteresuj się ftp
Go to the top of the page
+Quote Post
edwarpan
post
Post #3





Grupa: Zarejestrowani
Postów: 66
Pomógł: 0
Dołączył: 28.04.2010

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


Przez ftp, wypluło błąd, że nie mogę jednocześnie edytować i wysyłać. Może ma ktoś skrypt na zapis, zmianę i upload?
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 16.09.2025 - 06:07