...

View Full Version : Using php Function



ragy
12-23-2010, 07:31 AM
Hello guys,

I wanna ask, how to know If the visitor to my website using a mobile phone or PC? using php function

Any answers as fast as possible
Thnx

Stooshie
12-23-2010, 11:02 AM
google $_SERVER["HTTP_USER_AGENT"]

knightcon
01-13-2011, 05:58 AM
All that value will do is provide you with a non-friendly string containing a shed load of information about the browser and physical machine OS, Google PHP user agent identity classes. These classes will get the full string and then break the string apart into easy to understand components which will tell you the browser type, version, OS, etc.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum