Advertisement

07.17.2003 at 07:30AM PDT, ID: 20681474
[x]
Attachment Details

Detecting browser with PHP

Asked by m175400 in PHP Scripting Language

Tags: php, browser, detecting

Hi all,

I have a simple drop-down Javascript menu, that I would like to display in IE, but replace with a static menu in NN.

I need to detect the browser using PHP. I am an ASP developer by nature, just getting into PHP, so please be quite elaborate with your answer as I'm new to this.

I used the following to take a look at the results.

<?
$browser = get_browser();
echo $browser;
?>

I understand that this may have issues with regard to proxy settings etc., but I have set the page not to cache and so far so good, it seems to be working, so that's not a problem either. I just need a way to look at the output from get_brower() and determine simply whether the browser is NN or IE, which clearly isn't as easy as I thought i.e. as in Javascript.

Any help please!?Start Free Trial
[+][-]07.17.2003 at 07:36AM PDT, ID: 8943043

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2003 at 07:37AM PDT, ID: 8943047

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2003 at 11:38AM PDT, ID: 8945295

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: php, browser, detecting
Sign Up Now!
Solution Provided By: VGR
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.18.2003 at 07:52AM PDT, ID: 8952342

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 08:18AM PDT, ID: 8952578

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 08:29AM PDT, ID: 8952681

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 08:48AM PDT, ID: 8952829

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 08:52AM PDT, ID: 8952889

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 09:00AM PDT, ID: 8952938

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 09:17AM PDT, ID: 8953104

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.18.2003 at 09:43AM PDT, ID: 8953369

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2003 at 03:51AM PDT, ID: 8975250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2003 at 08:51AM PDT, ID: 8977804

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32