Home > Backend Development > PHP Problem > How to determine whether php is installed successfully

How to determine whether php is installed successfully

王林
Release: 2023-03-07 11:54:02
Original
4589 people have browsed it

Method to determine whether PHP is installed successfully: First create the phpinfo.php file in the PHP installation path; then open the browser, enter [http://localhost/phpinfo.php] in the URL input field, and return If you can see the phpinfo interface picture, the installation is successful.

How to determine whether php is installed successfully

Method to determine whether PHP installation is successful:

(Learning video recommendation: java course)

1. Create a file named phpinfo.php in the PHP installation path. The content of the file is:

<?php
    Phpinfo();
?>
Copy after login

2. Save the file, and then enter http://localhost in the browser URL input field. /phpinfo.php, press Enter. If the installation is successful, you can see the PHPINFO interface diagram, otherwise you will not see anything.

How to determine whether php is installed successfully

Related recommendations: php training

The above is the detailed content of How to determine 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