Joshua F Posted June 21, 2010 Share Posted June 21, 2010 I would like to know how to make my website show the viewers IP to them, this will just make it so they know there IP is being logged. Any ideas? Quote Link to comment Share on other sites More sharing options...
gizmola Posted June 21, 2010 Share Posted June 21, 2010 $_SERVER['REMOTE_ADDR'] works in most cases. Quote Link to comment Share on other sites More sharing options...
Joshua F Posted June 21, 2010 Author Share Posted June 21, 2010 So would it look like this..? <?php echo ' $_SERVER['REMOTE_ADDR'] '?> Edit: Got it to work, the code is the following. <?php echo ($_SERVER['REMOTE_ADDR'])?> Quote Link to comment 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.