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

How to create a public static method in PHP?

0 Answers  


How many types of functions are there in php?

0 Answers  


Single choice objective PHP question...

1 Answers  


what does this symbol mean in php?

0 Answers  


Explain some most commonly use string functions in php?

0 Answers  






What is a variable cost example?

0 Answers  


What are php expressions?

0 Answers  


What is difference between echo and print_r in php?

0 Answers  


hi! i am tushar. i am trying to insert digital signature in a pdf file using PHP. i create a digital signature jpg image using imagecreatefromjpeg() function, but whenever i trying to insert it into my pdf file it shown this error. "FPDF error: Not a JPEG file: signature.jpg". could some one help me? how can i insert a digital signature in a pdf file using PHP?

1 Answers  


How can we submit a form without a submit button?

23 Answers   ABC, HCL, Infosys, Kept Bug, Panys, Rushmore Consultancy, Torque Infotech, Wipro, zCon Solutions,


I have two radio button, i click one radio button display one dropdown box, one text field. and then click another radio button display one text field.so any one give me good idea plz.....i used <div id="" style=display:none> but not work..

4 Answers  


how to use http headers inside php? Write the statement through which it can be added?

0 Answers  


Categories