netpants Posted June 8, 2008 Share Posted June 8, 2008 I am getting this error. Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/mobsters/public_html/signup.php on line 312 This is line 312 in signup.php $host=gethostbyaddr("$REMOTE_ADDR"); What could the problem be??? Thanks in advance for your help. Link to comment https://forums.phpfreaks.com/topic/109201-solved-help-gethostbyaddr-functiongethostbyaddr-address-is-not-a-valid-ipv4/ Share on other sites More sharing options...
DarkWater Posted June 8, 2008 Share Posted June 8, 2008 $REMOTE_ADDR must not be set. Use $_SERVER['REMOTE_ADDR']. NEVER NEVER NEVER EVER depend on register_globals. Ever. Link to comment https://forums.phpfreaks.com/topic/109201-solved-help-gethostbyaddr-functiongethostbyaddr-address-is-not-a-valid-ipv4/#findComment-560163 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.