tomasd Posted October 3, 2007 Share Posted October 3, 2007 Hi, Since I've moved my web server from WAMP to LAMP enviroment following script instead of hostname only gives the IP address <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname; ?> (resolv.conf has exact same dns servers as WAMP server had) Can somebody explain how to make php resolve IP's to hostnames? Link to comment https://forums.phpfreaks.com/topic/71672-resolving-gethostbyaddr/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.