1, through $_server[' http_user_agent '] to write a PHP to determine the browser type method. function My_get_browser () {if (Empty ($_server[' http_user_agent ')) {return ' command line, the robot is coming! ';} if (False!==strpos ($_server[' http_user_agent '), ' MSIE 9.0 ') {return ' Internet Explorer 9.0 ';} if (False!==strpos ($_server[' http_user_agent '), ' MSIE 8.0 ')} {return ' Internet Explorer 8.0 '
1. Recommended 4 articles on Get_browser
Introduction: 1, through the $_server[& #39; http_user_agent& #39;] To write a PHP method to determine the browser type. function My_get_browser () {if (Empty ($_server[& #39; http_user_agent& #39;])) {return & #39; command line, the robot is coming! & #39;;} if (False!==strpos ($_server[& #39; HT ...
2. About PHP Get_browser functions 10 articles recommended
Introduction: 1, through the $_server[& #39; http_user_agent& #39;] To write a PHP method to determine the browser type. function My_get_browser () {if (Empty ($_server[& #39; http_user_agent& #39;])) {return & #39; command line, the robot is coming! & #39;;} if (False!==strpos ($_server[& #39; HT ...
3. PHP determines the type of client browser
Introduction: PHP Determines the type of client browser 1, through $_server[' http_user_agent ') to write a PHP to determine the browser type method. function My_get_browser () {if (Empty ($_server[' http_user_agent ')) {return ' command line, the robot is coming! '; } if (False!==strpos ($_server[' H ...
4. PHP to determine browser type
Introduction: 1, below we come through $_server[' http_user_agent ' to write a PHP judgment browser type method. function My_get_browser () {if (Empty ($_server[' http_user_agent ')) {return ' command line, the robot is coming! ';} if (False!==strpos ($_server[' http_user_agent '), ' MSIE
5. PHP Cookbook Reading Notes – No. 08 Chapter Web Foundation
Summary: This chapter focuses on some of the web-related basics such as cookies, get requests, post requests, read and write environment variables, and so on. Setcookie (): Set cookie value $_cookie[' name ': Get cookie Value Browser redirection: Header (' location:http://www.example.com/confirm.html '); Get_browser (): Get