';
$full = '';
$handheld = '';
// change this to match your include path/and file name you give the script
include('browser_detection.php');
$browser_info = browser_detection('full');
// $mobile_device, $mobile_browser, $mobile_browser_number, $mobile_os, $mobile_os_number, $mobile_server, $mobile_server_number
if ( $browser_info[8] == 'mobile' )
{
$handheld = '
Handheld Device:
';
if ( $browser_info[13][0] )
{
$handheld .= 'Type: ' . ucwords( $browser_info[13][0] );
if ( $browser_info[13][7] )
{
$handheld = $handheld . ' v: ' . $browser_info[13][7];
}
$handheld = $handheld . ' ';
}
if ( $browser_info[13][3] )
{
$handheld .= 'OS: ' . ucwords( $browser_info[13][3] ) . ' ' . $browser_info[13][4] . ' ';
// don't write out the OS part for regular detection if it's null
if ( !$browser_info[5] )
{
$os_starter = '';
$os_finish = '';
}
}
// let people know OS couldn't be figured out
if ( !$browser_info[5] && $os_starter )
{
$os_starter .= 'OS: N/A';
}
if ( $browser_info[13][1] )
{
$handheld .= 'Browser: ' . ucwords( $browser_info[13][1] ) . ' ' . $browser_info[13][2] . ' ';
}
if ( $browser_info[13][5] )
{
$handheld .= 'Server: ' . ucwords( $browser_info[13][5] . ' ' . $browser_info[13][6] ) . ' ';
}
$handheld .= '