Where is the php file written?
Create the root directory of the website, and then put all the files into the root directory, so that's it.
1. How to access to parse
1. The suffix must be .php
2.
3.Put In the root directory
4. Start the Apache service
5. Open the browser and enter localhost or 127.0.0.1 (local machine) in the address bar
2. Why?
1. Open the client browser. Enter the URL. Press Enter to send a request to the server
2. Find the software corresponding to the server through port 80. Apache accepts the request PHP--parsing (installed on Apache Extended PHP parser) dynamically generates HTML - then responds to the client, and the html responds directly to the browser
3. Parsed by the client (page)
3. Write a PHP file
<?php echo '<h1>我是标题</h1>'; ?>
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of Where to write php file. For more information, please follow other related articles on the PHP Chinese website!