Forum Moderators: coopster

Message Too Old, No Replies

PC or Mobile

         

abiao

1:58 pm on Jul 13, 2007 (gmt 0)

10+ Year Member



hi,

how to use PHP code to judge a person visit a site by PC or by mobile?

PHP_Chimp

2:19 pm on Jul 13, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look at the user agent string.
$_SERVER['HTTP_USER_AGENT'] will give you the UA string.