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? Quote Link to comment https://forums.phpfreaks.com/topic/71672-resolving-gethostbyaddr/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.