Page 1 of 1
is there any function in php which find out the browser type
Posted: Fri Oct 02, 2009 12:07 am
by mayanktalwar1988
hey is there any function in php which can find out the type of browser the user is using to open a site and then i want to carry out differnt code acording to the browser type is there any in php ......to find out the type whether iis it internet explorer or mozzilaa
is there any?
Re: is there any function in php which find out the browser type
Posted: Fri Oct 02, 2009 12:55 am
by cpetercarter
Google for "php user agent".
Re: is there any function in php which find out the browser type
Posted: Fri Oct 02, 2009 1:10 am
by mayanktalwar1988
ok..
Re: is there any function in php which find out the browser type
Posted: Fri Oct 02, 2009 5:09 am
by jackpf
$_SERVER['HTTP_USER_AGENT'] contains the browser's user agent sent in the header for the page request.