Home  >  Article  >  Backend Development  >  php detects whether the website is opened normally

php detects whether the website is opened normally

王林
王林Original
2019-09-27 17:51:363762browse

php detects whether the website is opened normally

 '.httpcode($check_web[$i]).'
'; } ?>

Usage:

If displayed If it is 200, it is normal. If other values ​​are displayed, it means it is abnormal; the 3 after $timeout is to set the timeout seconds.

The rendering is as follows:

## Recommended tutorial:

PHP video tutorial

The above is the detailed content of php detects whether the website is opened normally. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php cannot load imagesNext article:php cannot load images