Home  >  Article  >  Backend Development  >  How to detect whether the php environment is installed

How to detect whether the php environment is installed

WJ
WJOriginal
2020-05-30 14:42:285684browse

How to detect whether the php environment is installed

How to detect whether the php environment is installed

First create a new test.php file in the WWW directory

Then add the following content and save it

<?php
phpinfo()
?>

Finally open the local server and run localhost/test.php in the browser, If the following configuration appears, the PHP environment is successfully installed

How to detect whether the php environment is installed

##Related recommendations: php Chinese website



The above is the detailed content of How to detect whether the php environment is installed. 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