I need to display:
Peoples IP
Peoples Browser
Anybody know the PHP code for it?

I need to display:
Peoples IP
Peoples Browser
Anybody know the PHP code for it?
Is the IP =]HTML Code:<?php echo $_SERVER["REMOTE_ADDR"]; ?>
and the browser is:
so together they would be..PHP Code:<?php echo $_SERVER['HTTP_USER_AGENT']; ?>
PHP Code:<?php
echo "IP: ".$_SERVER['REMOTE_ADDR']."<br />
Browser: ".$_SERVER['HTTP_USER_AGENT']."";
?>
Last edited by Splinter; 02-04-2006 at 06:04 PM.
http://thybag.co.uk/index.php?p=Tutorials&ind=25
Has all that and more
althogh the bits u want are
<?php echo $_SERVER['REMOTE_ADDR']; ?>
IP
and
<?php echo get_browser('browser'); ?>
For browser name (without the exstra crap)
(phramiter name from memoery so may be wrong as php manual wont load
I forgot the other browser codeit could also be done in basic javascript...
Thanking you all and rep when I can![]()
Yep, I needed this as well so thanks very much!
Want to hide these adverts? Register an account for free!