PHP checks whether the website can be opened normally. this is a PHP code that checks whether the website can be opened normally. the following code checks whether a website can be accessed normally, if it is normal, the value of http status code 200 will be returned. if it is other, it will not be normal. this code can be used in many places, such as cache the ICO icon of the link, check whether the website is normal when caching. if the website is normal, the ICO icon is cached. Otherwise, a default icon file is called. & Lt; met PHP checks whether the website can open code normally
This is a PHP code that checks whether the website can be opened normally. the following code checks whether a website can be accessed normally. if it is normal, the http status code 200 is returned, this code can be used in many places, for example, to cache the ICO icon of a link. when caching, check whether the website is normal, if it is normal, the ICO icon is cached. Otherwise, a default icon file is called.
Usage:
If it is displayed as 200, it is normal. if it is displayed with other values, it means it is abnormal. 3 after $ timeout is the set timeout seconds.
?
? :
?
?
?
?
?