" code; 3. Open the browser and enter the URL of the site. If it can be accessed normally, it means that the environment has been set up successfully."/> " code; 3. Open the browser and enter the URL of the site. If it can be accessed normally, it means that the environment has been set up successfully.">
Home > Article > Backend Development > How to check whether the php environment is set up successfully
How to check whether the PHP environment is successfully established: 1. Write a test.php file in the root directory of the site; 2. Enter the "<?php phpinfo();?>" code; 3. Open Browser, enter the URL of the site, if it can be accessed normally, it means that the environment has been set up successfully.
The operating environment of this article: windows7 system, PHP5.4.29 version, DELL G3 computer
How to check whether the php environment is Successfully built?
1. How to judge whether the PHP environment is successfully built
To judge whether the PHP environment is successfully built, you can write test.php in the root directory of the site 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
. If you can access it normally, you will see web page information similar to the following, which means that the PHP setup is basically completed:
2. It feels difficult to build a PHP environment
It is recommended to use PHP integrated environment to install software, such as PHPStudy, xampp, PHPWAMP, etc.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to check whether the php environment is set up successfully. For more information, please follow other related articles on the PHP Chinese website!