The code below helps you to detect the HTTP user agent I mean the browser version.
- <?php
- $useragent = $_SERVER['HTTP_USER_AGENT'];
- echo "<b>User Agent </b>: ".$useragent;
- ?>
Return
User Agent : Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36
User Agent : Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36
1 comments:
PHP Training in Chennai | PHP Training | PHP Training Institutes in Chennai | PHP Online Training | PHP Online Training India
ReplyPost a Comment
Note: Only a member of this blog may post a comment.