Method to detect whether PHP is installed successfully: first create a new PHP document in the root directory; then write the "phpinfo()" function in the document; finally open the browser, enter the site URL, and it can be accessed normally. The appearance of the phpinfo page proves that the installation is successful.
The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
To determine whether the PHP environment is successfully built, you can go to the site root Write test.php in the directory and enter the content:
<?php phpinfo(); ?>
Then, open the browser and enter the URL of the site, for example:
localhost/test.php
or
127.0.0.1/test.php
Recommended: "2021 PHP interview questions summary (collection)》《php video tutorial》
The above is the detailed content of How to check whether php is installed successfully. For more information, please follow other related articles on the PHP Chinese website!