How we know browser properties

Editorial / Best Answer

bicu  

  • Member Since Sep-2005 | Mar 3rd, 2006


get_browser() attempts to determine the capabilities of the user's browser. This is done by looking up the browser's information in the browscap.ini file.

echo $_SERVER['HTTP_USER_AGENT'] . "<hr />\n";

$browser = get_browser
();

foreach (
$browser as $name => $value
) {
    echo
"<b>$name</b> $value <br />\n"
;
}

Showing Answers 1 - 4 of 4 Answers

get_browser() attempts to determine the capabilities of the user's browser. This is done by looking up the browser's information in the browscap.ini file.

echo $_SERVER['HTTP_USER_AGENT'] . "<hr />\n";

$browser = get_browser
();

foreach (
$browser as $name => $value
) {
    echo
"<b>$name</b> $value <br />\n"
;
}

abc

  • Sep 12th, 2011
 

Code
  1. echo $_SERVER['HTTP_USER_AGENT'] . "

  2. ";

  Was this answer useful?  Yes

naveen gautam

  • Dec 24th, 2011
 

$_SERVER[HTTP_USER_AGENT]; by this method we can know the properties of browser.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions