[SOLVED] Newby question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
KaiN_1
Forum Newbie
Posts: 4
Joined: Thu Nov 13, 2003 1:46 pm
Location: Virginia Beach
Contact:

[SOLVED] Newby question

Post by KaiN_1 »

I am new to php and I am not even sure if the code I want is PHP or if this can be done in php...

I was recently on a forum that I cannot find again and the admin had a signature with a box and my IP addy and browser info. It was really neat and I tried to find a script for it but I am coming up short. :?

Anyone know of such a script?
I would like to use it on my Forum

Example:

Your IP Address is: XXX.XX.XXX.XX

Your Browser Type is: I.E. 6.0 Java Enabled
User avatar
mrvanjohnson
Forum Contributor
Posts: 137
Joined: Wed May 28, 2003 11:38 am
Location: San Diego, CA

Post by mrvanjohnson »

I think this is how you do it using PHP.

Code: Select all

<?php
echo "Your Browser is: ".$_ENV["HTTP_USER_AGENT"] ;
echo "<br>";
echo "Your IP is: ".$_ENV["LOCAL_ADDR"];
?>
Sample Output
Your Browser is: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Your IP is: 127.0.0.1
You can also do browser and IP detection using Javascript if you don't normally use PHP. Do a google search on it.
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

You mean like this?

Image

You can get more info here:
http://www.danasoft.com/
KaiN_1
Forum Newbie
Posts: 4
Joined: Thu Nov 13, 2003 1:46 pm
Location: Virginia Beach
Contact:

Post by KaiN_1 »

Great let me try that. Thank you mrvanjohnson
KaiN_1
Forum Newbie
Posts: 4
Joined: Thu Nov 13, 2003 1:46 pm
Location: Virginia Beach
Contact:

Post by KaiN_1 »

Yes!!!! thats it!!!! microthick

how do you do that?

oops, checking out link now, got excited...

Thank you very much!!
Last edited by KaiN_1 on Thu Nov 13, 2003 2:24 pm, edited 1 time in total.
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

It's a service some guy at http://www.danasoft.com/ created.

You can customize it at the website for yourself.

Or you can buy the source code and fiddle with it yourself.
KaiN_1
Forum Newbie
Posts: 4
Joined: Thu Nov 13, 2003 1:46 pm
Location: Virginia Beach
Contact:

Post by KaiN_1 »

:D That is Awsome :D Thanks again :P
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

"There is no spoon." lol
Post Reply