Home > Backend Development > PHP Problem > How to check whether the php environment is set up successfully

How to check whether the php environment is set up successfully

藏色散人
Release: 2023-03-13 17:40:01
Original
4533 people have browsed it

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.

How to check whether the php environment is 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();?>
Copy after login

Then, open the browser and enter the URL of the site, for example:

localhost/test.php
Copy after login

or

127.0.0.1/test.php
Copy after login

. 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:

How to check whether the php environment is set up successfully

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template