Home > Article > Backend Development > 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
##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!