How do you get the Browser information?
Answer Posted / jahanvi
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";
}
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Why we use get in php?
What is difference between mysql_connect and mysqli_connect?
What are getters and setters php?
How do I make a reset button in html?
What is the difference between php and cakephp?
Explain what is the difference between $var and $$var?
How do you access a get requests url parameter with php?
Why do we need abstract class in php?
What types of MYSQL function available for affecting columns
What is baseurl?
Tell me how is it possible to propagate a session id?
What is the value for this auto incremented field user_pri_id?
Explain mysql_error().
How do I run a php program in dreamweaver?
Is python better than php?