Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php], Address is not a valid IPv4 or IPv6 address
terreska
post
Post #1





Grupa: Zarejestrowani
Postów: 80
Pomógł: 0
Dołączył: 23.07.2006

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


Po zmianie serwera pojawił mi się taki komuniakat:

Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in ...

Linia kodu o którą się rozchodzi to:
  1. <?php
  2. $message = "nWyslane z ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)n";
  3. ?>


Co jest przyczyną błędu? Proszę o pomoc.
Pozdrawiam
terreska
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Balon
post
Post #2





Grupa: Zarejestrowani
Postów: 422
Pomógł: 0
Dołączył: 14.12.2005
Skąd: Wałbrzych

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


  1. <?php
  2. $message = "nWyslane z ".gethostbyaddr($SERVER['REMOTE_ADDR']). " ($SERVER['REMOTE_ADDR'])n";
  3. ?>


register_global na off jest zapewne
Go to the top of the page
+Quote Post

Posty w temacie


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: 17.10.2025 - 20:33