Home  >  Article  >  Backend Development  >  How to check whether php is installed successfully

How to check whether php is installed successfully

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-04-19 17:19:074547browse

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.

How to check whether php is installed successfully

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!

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