Location: PHPKode > scripts > User Info & GeoIP > user-info-geoip/implementation.php
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt

user info class implementation


$userInfo = new getUserInfo();

/* Load System */

/* User Browser */
echo 'Browser: '.$userInfo->getBrowser();

/* Operating System */
echo '<br />System: '.$userInfo->getSystem();

/* User IP */
echo '<br />IP: '.$userInfo->getIP();

/* Get System Language */
list($languageCode,$languageName) = $userInfo->getLanguage();
echo '<br />Language Code: '.$languageCode;
echo '<br />Language Name: '.$languageName;

/* User referral */
echo '<br />User Referreal URL: '.$userInfo->getReferer();

/* Is Referral a search engine? */
echo '<br />User Referral Search Engine: '.$userInfo->getEngine();

Custom Checks - May Require Page Reload on some Servers 
Uses Cookies to transfer variables to PHP Engine

/* Load Cookies (Used for javascript/flash checking) */
$cookie = $userInfo->checkJavaFlashCookie();

/* Check for Javascript */
if($cookie == NULL){ echo '<br />Javascript Disabled';}else{ echo '<br />Javascript Enabled';}

/* Check for Flash */
switch ($cookie)
	case true: echo '<br />Flash Enabled';break;
	case false: echo '<br />Flash Disabled';break;

/* Check for Speed */
$speed = $userInfo->getSpeed();
echo '<br />Speed Kpbs: '.$speed;

Get Country - Requires Database/Installtion.
Download the CSV file, extract it to the helper.folder
Run helper.folder/installDatabase.php
Do the same whenever you want to update the database
//echo '<br />Country: '.$userInfo->getCountry();
Return current item: User Info & GeoIP