Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-04-28, 05:59 PM   #1
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
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>
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-04-28, 06:11 PM   #2
SexyCityEddie
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: Apr 2005
Posts: 30
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
__________________
<a href="http://www.sexycitycash.com">Sexy City Cash. New FHG's & HFS's Every Week To Help You Make Some Bank</a>
SexyCityEddie is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc