Home  >  Article  >  Backend Development  >  How to preview php files

How to preview php files

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-09-26 11:48:454716browse

How to preview php files

How to preview php files? Here are the relevant steps:

1. Download and install the server software wamp server wamp server download under windows that integrates Apache, PHP and Mysql.

2. Place the edited php file in the www folder under the wamp installation location.

Related recommendations: "php Basic Tutorial"

3. Open wamp and start the service (the small icon in the taskbar turns green to indicate that the service has been started) .

4. Open the php file with a browser.

5. Note that the browser only opens the file as a normal file at this time, not as a network file. You need to modify the address in the address bar of the browser, such as file:///C :/wamp/www/Learn_PHP.php

modified to

http://localhost/Learn_PHP.php

The above is the detailed content of How to preview php files. 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