Page 1 of 1

[SOLVED] Newby question

Posted: Thu Nov 13, 2003 1:46 pm
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

Posted: Thu Nov 13, 2003 2:18 pm
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.

Posted: Thu Nov 13, 2003 2:20 pm
by microthick
You mean like this?

Image

You can get more info here:
http://www.danasoft.com/

Posted: Thu Nov 13, 2003 2:21 pm
by KaiN_1
Great let me try that. Thank you mrvanjohnson

Posted: Thu Nov 13, 2003 2:21 pm
by KaiN_1
Yes!!!! thats it!!!! microthick

how do you do that?

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

Thank you very much!!

Posted: Thu Nov 13, 2003 2:22 pm
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.

Posted: Thu Nov 13, 2003 2:28 pm
by KaiN_1
:D That is Awsome :D Thanks again :P

Posted: Thu Nov 13, 2003 3:15 pm
by JAM
"There is no spoon." lol