nightkarnation Posted December 26, 2008 Share Posted December 26, 2008 Is there an easy way to get the user IP when for example he posts on my php guestbook like: $ip = $ip(); Or something like that Link to comment https://forums.phpfreaks.com/topic/138490-solved-retrieve-the-ip-address-of-the-user/ Share on other sites More sharing options...
n8w Posted December 26, 2008 Share Posted December 26, 2008 $ip=$_SERVER["REMOTE_ADDR"] ; Link to comment https://forums.phpfreaks.com/topic/138490-solved-retrieve-the-ip-address-of-the-user/#findComment-724111 Share on other sites More sharing options...
hobeau Posted December 26, 2008 Share Posted December 26, 2008 <?php $ip = $_SERVER['REMOTE_ADDR']; ?> Link to comment https://forums.phpfreaks.com/topic/138490-solved-retrieve-the-ip-address-of-the-user/#findComment-724112 Share on other sites More sharing options...
nightkarnation Posted December 26, 2008 Author Share Posted December 26, 2008 Perfect! Thanx guys! Cheers! Link to comment https://forums.phpfreaks.com/topic/138490-solved-retrieve-the-ip-address-of-the-user/#findComment-724113 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.