Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z file get conents
xavierek
post
Post #1





Grupa: Zarejestrowani
Postów: 92
Pomógł: 2
Dołączył: 22.03.2009

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


Warning: file_get_contents(http://xxxxxxxxxxxxx.pl) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/soundsta/domains/tibia2.idl.pl/public_html/CRON/died.php on line 13

Witam czy jest możliwość zrobienia jakoś jeżeli owy błąd wystąpi to się robi jakaś czynność czy może ta funkcja zwraca status true lub false ? czy cos w tym rodzaju , chodzi mi oto ze jak mu sie nie udalo zeby probowal jeszcze raz az do skutku
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
marcio
post
Post #2





Grupa: Zarejestrowani
Postów: 2 291
Pomógł: 156
Dołączył: 23.09.2007
Skąd: ITALY-MILAN

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


NOm zwracac zwraca w koncu mozesz zrobic warunek if(file_get_contents($costam)) (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) a jak chcesz az do skutku to wrzuc do nieskonczonej petli np while(true) i tyle

P.S jak nie to sprobuj tak:
  1. <?php
  2. while(file_get_contents($plik) != false)
  3. ?>


Ale wiesz dawno w php nie kodzilem (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Ten post edytował marcio 26.04.2009, 15:05:23
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 27.12.2025 - 04:21