View Full Version : Ip script
foxpro
04-02-2006, 02:41 AM
Hello
I have a problem...
How i can write in the page the Ip of the user?
benslayton
04-02-2006, 02:50 AM
Here's what I found in a quick Google Search.
:
<?php
echo 'User IP Address: ' .$_SERVER['REMOTE_ADDR']. '';
?>
I hope that works, I've never nedded anything like an ip code.
benslayton
04-02-2006, 02: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.
foxpro
04-02-2006, 12:03 PM
Thanks you
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.