Home >Backend Development >PHP Problem >How to test the php running environment

How to test the php running environment

王林
王林Original
2019-09-06 18:03:2910072browse

How to test the php running environment

After configuring the PHP operating environment, beginners need to check whether the environment is configured successfully. So how to check whether the PHP operating environment is configured successfully?

In fact, the steps to detect the PHP running environment are very simple:

Step one: First, make sure that the PHP running environment has been configured.

Step 2: Create a new info.php file under the website directory (www)

Step 3: Write a script in the info.php file

<?php
phpinfo();
?>

Finally Step one: Enter: 127.0.0.1 or localhost

in the browser address bar. When a page appears, it means that you have successfully configured the environment.

How to test the php running environment

Recommended video tutorial: PHP video tutorial

The above is the detailed content of How to test the php running environment. 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

Related articles

See more