
November 18th, 2002, 01:00 AM
|
5B's
|
|
Join Date: Oct 2002
Location: PC, FL
Posts: 366
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 17
|
|
$HTTP_USER_AGENT and get_browser()
Does anyone have an array of all the OS Types and Browser Types?
I found this on the php.net site, but the list is incomplete.
PHP Code:
$so = $_SERVER['HTTP_USER_AGENT'];
$windowsxp = preg_match("/windows nt 5.1/i", $so);
$windowsxp2 = preg_match("/windows xp/i", $so);
$linux = preg_match("/linux/i", $so);
$windowsme = preg_match("/win 9x 4.90/i", $so);
$windowsme2 = preg_match("/windows me/i", $so);
$windows2k = preg_match("/windows nt 5.0/i", $so);
$windows2kb = preg_match("/windows 2000/i", $so);
$windowsnt = preg_match("/windows nt 3.1/i", $so);
$windowsnt2 = preg_match("/windows nt 3.5.0/i", $so);
$windowsnt3 = preg_match("/windows nt 3.5.1/i", $so);
$windowsnt4 = preg_match("/windows nt 4.0/i", $so);
$windows98 = preg_match("/windows 98/i", $so);
$windows95 = preg_match("/windows 95/i", $so);
Does anyone have a listing of the Browser Types and OS Types with the Reg Ex already done up?
|