"; then run the PHP file in the browser , if you can see the interface diagram of PHPINFO, the installation is successful."/> "; then run the PHP file in the browser , if you can see the interface diagram of PHPINFO, the installation is successful.">

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

How to check whether php is installed successfully?

青灯夜游
青灯夜游Original
2020-11-04 13:47:565206browse

How to check whether php is installed successfully: First, create a file named phpinfo.php in the PHP file under the PHP installation path, with the content of the file as ""; then run the PHP file in the browser , if you can see the interface diagram of PHPINFO, the installation is successful.

How to check whether php is installed successfully?

Recommended: "PHP Video Tutorial"

How to check whether PHP is installed successfully

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

<?php
phpinfo();
?>

2. Save the file and then open it in IE Enter http://localhost/phpinfo.php. If the installation is successful, you will be able to see the interface diagram of PHPINFO. Otherwise, you will not be able to see anything.

How to check whether php is installed successfully?

More programming related knowledge, Please visit: Programming Teaching! !

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!

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