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?
is there any function in php which find out the browser type
Moderator: General Moderators
-
mayanktalwar1988
- Forum Contributor
- Posts: 133
- Joined: Wed Jul 08, 2009 2:44 am
-
cpetercarter
- Forum Contributor
- Posts: 474
- Joined: Sat Jul 25, 2009 2:00 am
Re: is there any function in php which find out the browser type
Google for "php user agent".
-
mayanktalwar1988
- Forum Contributor
- Posts: 133
- Joined: Wed Jul 08, 2009 2:44 am
Re: is there any function in php which find out the browser type
$_SERVER['HTTP_USER_AGENT'] contains the browser's user agent sent in the header for the page request.