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

How to test whether php is installed successfully

藏色散人
Release: 2023-03-08 11:20:01
Original
5670 people have browsed it

Method to test whether PHP is installed successfully: First create a file named "phpinfo.php" in the PHP installation path with the content of "Phpinfo();"; then enter "localhost" in the browser /phpinfo.php", if the installation is successful, you can see the PHPINFO interface.

How to test whether php is installed successfully

The operating environment of this article: Windows 7 system, PHP version 5.2.5, Dell G3 computer.

Method to test whether PHP installation is successful:

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

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

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

[Recommended study: "PHP Video Tutorial"]

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