There are many causes for HTTP 500, which can be determined based on the HTTP status code. For example
HTTP 500-Internal Server ErrorHTTP 500.100-Internal Server Error-ASP ErrorHTTP 500.11 Server DisabledHTTP 500.12 application restartsHTTP
Kabbah 6.0.1.411 server upgrade)Currently, you can directly upgrade 307 from the official website (For details, refer to this post). in this forum, the 307 upgrade server is in the test architecture phase (not announced for the moment)---------------
How php judges whether the wap mobile client is used
// If HTTP_X_WAP_PROFILE exists, it must be a mobile device.
If (isset ($ _ SERVER ['http _ X_WAP_PROFILE ']) {
Return true;
}
Analysis: By
The variables included in PHP $ _ SERVER are global variables, which can be called Super global variables. Below I will give you a detailed explanation of common PHP $ _ SERVER usage, hoping to help you.
Frequently used $ _ SERVER [] Variables
$ _
$ _ SERVER ['server _ SIGNATURE '] # a string containing the SERVER version and virtual host name. $ _ SERVER ['path _ TRANSLATED '] # Basic PATH of the file system where the current script is located (not the root directory of the document.
$ _
Recently, the project requires some different processing based on the browser type of the user, so I studied a little bit about how to use php to determine the browser type, the following article describes how to obtain the browser type of a visitor'
Php obtains the browser type of the visitor's browser page.
The method is as follows:
Check your agent string, which is part of the HTTP request sent by the browser. Use $_SERVER['HTTP_USER_AGENT']Obtain the agent string.
For example:
It may be
Recently, the project requires some different processing based on the browser type of the user, so I studied a little bit about how to use php to determine the browser type, the following article describes how to obtain the browser type of a visitor'
$ _ SERVER [& amp; 39; PHP_SELF & amp; 39;] file name of the script being executed, which is related to documentroot. $ _ SERVER [& amp; 39; argv & amp; 39;] parameters passed to the script. $ _ SERVER [& amp; 39; argc & amp; 39;] include the
Determine the client type based on php and php determine the client type
During statistics on the number of website users, we often need to obtain the types of user browsers and operating systems. This article mainly introduces how to determine the
Php checks whether the user accesses the code by phone, and php checks the access code. Php checks whether a user accesses the code through a mobile phone. with the popularization of mobile devices, more and more mobile devices will access the
In the previous case, we used to determine whether a user accesses a mobile phone or a computer, and then display the corresponding page to the user. Initially, js was used, but the accuracy was not high. finally, PHP was used for this purpose.
In the previous case, we used to determine whether a user accesses a mobile phone or a computer, and then display the corresponding page to the user. Initially, js was used, but the accuracy was not high. finally, PHP was used for this purpose.
ThinkPHP3.2 determine whether it is accessed by the Mobile phone and jump to the method of another module. The directory structure is Common, Home, and Mobile modules. The Mobile module configures ApplicationCommonConfconfig. php file
Php website determines whether a user is accessed by a mobile phone. With the popularization of mobile devices, more and more mobile devices will access websites. Pages adapted to PCs are often unfriendly to mobile users. in some cases, we need to
Php 5 is a common compatible public file. every new project requires many php modifications for environment configuration. For this reason, I have compiled this generic php header file.
Save the code as a php file and introduce it to the
This article describes how to use PHP to determine whether a user can access a mobile phone. it is very useful and recommended to friends who need it. With the popularization of mobile devices, more and more mobile devices will access websites.
With the popularization of mobile devices, more and more mobile devices will access websites. Pages adapted to PCs are often unfriendly to mobile phone users. In some cases, we need to determine whether users are accessed by mobile phones. If they
This article describes how to use PHP to determine whether a user can access a mobile phone. It is very useful and recommended to friends who need it.
This article describes how to use PHP to determine whether a user can access a mobile phone. It is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.