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
Post a Comment