srose Posted November 13, 2008 Share Posted November 13, 2008 Hi I am wanting to display users IP address on my site. I typed this into a paragraph: <p> <?php $user_ip = $SERVER['REMOTE_ADDR']; print "Your I P Address is " . $user_ip; ?> </p> All this does is print "Your I P Address is", but it does not say the IP. What is wrong here. Thanks Link to comment https://forums.phpfreaks.com/topic/132593-showing-users-ip-address-on-site/ Share on other sites More sharing options...
iversonm Posted November 13, 2008 Share Posted November 13, 2008 <?php $user_ip = $_SERVER['REMOTE_ADDR']; print "Your I P Address is " . $user_ip; ?> Link to comment https://forums.phpfreaks.com/topic/132593-showing-users-ip-address-on-site/#findComment-689483 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.