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! Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.