Is there any way to detect the browser type in PHP?
Thanks, Jacob
$HTTP_USER_AGENT
-- Rich Rijnders -- Irvine, CA US
the variable $HTTP_USER_AGENT contain a string of user agent info, including browser type. Parse the string information to get the browser type.
Alternatively, you can use get_browser() which returns an array instead of a string as $HTTP_USER_AGENT does. It's in the manual.
Cheers
Patrik