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!