How to check whether php is installed successfully

醉折花枝作酒筹
Release: 2023-03-09 11:50:02
Original
4562 people have browsed it

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();
?>
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

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!

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