Home  >  Article  >  Backend Development  >  Where to write php file

Where to write php file

藏色散人
藏色散人Original
2019-11-07 09:49:544083browse

Where to write php file

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.bb9bd6d87db7f8730c53cb084e6b4d2d

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 &#39;<h1>我是标题</h1>&#39;;
  ?>

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!

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