Guest askjames01 Posted March 12, 2006 Share Posted March 12, 2006 I know this is easy question but i haven't tried this before...I want to add addtional features to my website counter...Now, i want to put a condition to get the I.P. address of the visitor...Just a simple snippet codes will do...no problem with the counter stuffs. i just want to...record the I.P. address of the visitor...Thank you very much in advance...-/james Link to comment https://forums.phpfreaks.com/topic/4757-recording-ip-address/ Share on other sites More sharing options...
hitman6003 Posted March 12, 2006 Share Posted March 12, 2006 To get the user's ip:[code]$ip = $_SERVER['REMOTE_ADDR'];[/code] Link to comment https://forums.phpfreaks.com/topic/4757-recording-ip-address/#findComment-16686 Share on other sites More sharing options...
Guest askjames01 Posted March 12, 2006 Share Posted March 12, 2006 Thank you mate [b]hitman6003[/b].-/james Link to comment https://forums.phpfreaks.com/topic/4757-recording-ip-address/#findComment-16695 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.