How can we get the browser properties using PHP?

Answers were Sorted based on User's Feedback



How can we get the browser properties using PHP?..

Answer / anand wankhede

Just write it as $_SERVER['HTTP_USER_AGENT'].

Is This Answer Correct ?    9 Yes 0 No

How can we get the browser properties using PHP?..

Answer / pritam m

get_browser(string user_agent, bool return_array)
this function returns the browser info , but for this it depend upon the user and also the 'browscap' parameter need to set to point to the correct location of browscap.ini on your system.

Is This Answer Correct ?    4 Yes 1 No

How can we get the browser properties using PHP?..

Answer / shivaganesh

using $_server['HTTP_USER_AGENT']

Is This Answer Correct ?    3 Yes 1 No

How can we get the browser properties using PHP?..

Answer / pappu kumar sharma

$browser = get_browser(null, true);
print_r($browser);

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More PHP Interview Questions

What is ltrim?

0 Answers  


Tell me what does the scope of variables means?

0 Answers  


can you give me an example code of calling java script function in php variable using AJAX.or with out ajax??????

0 Answers  


Tell me what is the difference between get and post?

0 Answers  


What is the use of php and mysql?

0 Answers  






How to remove duplicate values from php array?

0 Answers  


Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?

0 Answers  


What type of inheritance that PHP supports?

15 Answers   Webwing Technologies,


What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?

1 Answers  


Is variable name casesensitive in php?

0 Answers  


What does $_cookie mean?

0 Answers  


Tell me what is the difference between exception::getmessage and exception::getline?

0 Answers  


Categories