Hey! I need a script for my website that displays the viewers IP, any know scripts? I have googled it numerous times.

Hey! I need a script for my website that displays the viewers IP, any know scripts? I have googled it numerous times.
www.habbmania.co.uk >> Send me a pm if you need a habbo fansite job!
Check out some of my videos!
PHP Code:<?=$_SERVER["REMOTE_ADDR"]; ?>
Kind Regards,
Guy__________________
Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
Tech-Hosts.co.uk.
Both are correct.
I recommend you Guy's one though
PHP Code:<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo($ip);
?>
None of these are working, I think you have made that code wrong aswell.
The code should be:[php] <?php
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
?>
Any other ways?
www.habbmania.co.uk >> Send me a pm if you need a habbo fansite job!
Check out some of my videos!
I used this on one of my sites and works perfectly:
PHP Code:<?php
echo("Your IP address:<br />");
echo($_SERVER['REMOTE_ADDR']);
?>
Use mine if you have short tags enabled.
Just tried this on my site and it comes up with this where i wanted it:
OMG!It's habbMANIA V1! Don't go away! "); echo($_SERVER['REMOTE_ADDR']); ?>
www.habbmania.co.uk >> Send me a pm if you need a habbo fansite job!
Check out some of my videos!
Lets set the stage on fire, and hollywood will be jealous.
Orr..
Save bw and just do
...PHP Code:<?php
echo($_SERVER["REMOTE_ADDR"]);
?>
And is the file extension definately .php?
Coming and going...
Highers are getting the better of me
Want to hide these adverts? Register an account for free!