View Full Version : Ip script
04-02-2006, 01:41 AM
I have a problem...
How i can write in the page the Ip of the user?
04-02-2006, 01:50 AM
Here's what I found in a quick Google Search.
echo 'User IP Address: ' .$_SERVER['REMOTE_ADDR']. '';
I hope that works, I've never nedded anything like an ip code.
04-02-2006, 01:52 AM
Oh I forgot to tell you to put this code where you want the ip to show.
<?php echo($_SERVER['REMOTE_ADDR']); ?>The rest is superfluous. Of course, using PHP, this means you must have PHP installed and enabled on your server.
Ben: there is an edit button on your posts. Use this if you want to add something, rather than double-posting.
04-02-2006, 12:03 PM
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.