problem in fetching browser info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

problem in fetching browser info

Post by itsmani1 »

hi there....

i am having problem in getting browser info can any one help me?
i want to know in which browser my page is currently running.
thanx
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

If you mean which client browser the user is viewing your page with (aka user agent), then you can use the $_SERVER['HTTP_USER_AGENT'] super global, but it isn't 100% reliable.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

USER AGENT string can help you...
Post Reply