otuatail Posted May 13, 2006 Share Posted May 13, 2006 I have a small website and using session variables I can create a counter for how many hits I get. I can also create a seperate log giving me dates and times. I think someone is artificialy incrementing this. Can I retreve the IP address and log this as well. I have seen the website whatsmyipaddress.com so it must work.Desmond. Link to comment https://forums.phpfreaks.com/topic/9596-whats-my-ip-address/ Share on other sites More sharing options...
wildteen88 Posted May 13, 2006 Share Posted May 13, 2006 If you want to get the vistors ip address trhen you'll this code:[code]echo $_SERVER['REMOTE_ADDR'];[/code]Note, some web browsers hides the ursers ip address, so that code above may return false, therefor no IP address was retrieved. Link to comment https://forums.phpfreaks.com/topic/9596-whats-my-ip-address/#findComment-35461 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.