March 18th, 2003, 12:04 AM
|
#4 (permalink)
|
| Junior Member
Join Date: Mar 2003
Posts: 4
|
I think that this is probably running on a server with PHP. It probably has the GD library ( http://www.php.net/manual/en/ref.image.php ). This allows you to create images in multiple formats on the fly. It can then just use the predefined variables $_SERVER["REMOTE_ADDR"] to find the ip and $_SERVER["REMOTE_HOST"]. Remote_host is a reverse dns lookup so it returns the host u r using. The script just removes the end of the string "optonline.net" for example and there you have it. To get the browser and OS, it uses $_SERVER["HTTP_USER_AGENT"], which returns a string something like this: "Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)". YOu can then just parse the string and remove the relevant parts. The rest is just a random picked phrase. cool huh? its pretty easy in PHP, except i'm not sure how easy it is to use the GD lib. Cheers, btw, anyone happen to have an answer to my question earlier?  |
| |