JSHINER Posted September 17, 2007 Share Posted September 17, 2007 Wondering how I can make a simple echo 'IP'; and have it display 111.01.01.01. Thanks! Link to comment https://forums.phpfreaks.com/topic/69666-solved-simple-question-how-do-i-echo-the-users-ip-address/ Share on other sites More sharing options...
cooldude832 Posted September 17, 2007 Share Posted September 17, 2007 $_SERVER variable contains all you need look it up on php.net Link to comment https://forums.phpfreaks.com/topic/69666-solved-simple-question-how-do-i-echo-the-users-ip-address/#findComment-350032 Share on other sites More sharing options...
leonglass Posted September 17, 2007 Share Posted September 17, 2007 print $_SERVER['REMOTE_ADDR']; should work. Link to comment https://forums.phpfreaks.com/topic/69666-solved-simple-question-how-do-i-echo-the-users-ip-address/#findComment-350036 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.