Quote:
Originally Posted by cd34
Code:
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
preg_match('/\)\ .*\ (.*)\//',$ua,$browser);
preg_match('/\(.*; (.*);\ .*;\ .*\)\ /',$ua,$os);
?>
your IP is: <?php echo $_SERVER['REMOTE_ADDR']; ?><br>
your browser is: <?php echo $browser[1]; ?><br>
your OS is: <?php echo $os[1]; ?><br>
your ISP is: <?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']); ?><br>
<p>
<script language="javascript" type="text/javascript">
document.write(navigator.appName + "<br>");
document.write(navigator.platform + "<br>");
</script>
|
this is great also. i tried this but the problem is the IP OS ISP and Browser is blank, i put it inside the "body" and saved as php.. do i have to edit some?
tt