Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]while, Service Temporarily Unavailable
ZaXaZ
post
Post #1





Grupa: Zarejestrowani
Postów: 285
Pomógł: 18
Dołączył: 30.01.2014
Skąd: <?=$_GET['city']?>

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


Cytat
Service Temporarily Unavailable

The server closed the connection without sending any data.

The server is temporarily unable to service your request due to maintenance downtime or capacity problems.

Due to heavy load on the server, connections may be temporarily blocked from locations that fetch an unusually high number of pages.

We apologize for the inconvenience.


Jestem bardzo słaby w pętlach, gdy próbuje napisać pętle otrzymuje w.w. błąd co ktorąś próbe (a co ktorąś działa poprawnie)

  1. $while = true;
  2. while ($while)
  3. {
  4. /** zapetlenie otwarcie strony (wrazie zmiany wyniku/wariantu
  5.  */
  6. $strona = file_get_contents // (...)
  7.  
  8. while ($while)
  9. {
  10. //sprawdzenie kilku wariantów z zapętlanej strony
  11. if (strpos($strona, 'coś')!==false) /*robimy coś*/
  12. if (strpos($strona, 'coś2')!==false) /*robimy coś2*/
  13. if (strpos($strona, 'coś3')!==false){$while=false; break; }
  14. } if (strpos($strona, 'coś3')!==false){$while=false; break; }
  15. }


Kod skrócony cały bo ma identyczne znaczenie.

Edit: jeśli wyraziłem się nie zrozumiale, proszę pisać.

Ten post edytował ZaXaZ 6.10.2014, 17:34:45


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- ZaXaZ   [PHP]while   6.10.2014, 17:30:39
- - d0m1n1k_   "Due to heavy load on the server, connections...   6.10.2014, 17:38:59
- - ZaXaZ   Cytat(d0m1n1k_ @ 6.10.2014, 18:38:59 ...   6.10.2014, 17:45:54


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: 22.08.2025 - 09:17