why getenv('remote_addr') giving me vacant ip address?


this php code...



207    (getenv(http_x_forwarded_for)) {
208 $ip = getenv('http_x_forward_for');
209 $host = gethostbyaddr($ip);
210 } else {
211 $ip = getenv('remote_addr');
212 $host = gethostbyaddr($ip);
213 }


throws warning...




warning: gethostbyaddr()
[function.gethostbyaddr]: castle is
a.b.c.d form c:\inetpub...\filename.php line 212




it seems $ip blank.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?