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

How to determine whether php is installed successfully

王林
王林Original
2020-11-06 09:10:094538browse

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

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!

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