Where to write php file

藏色散人
Release: 2023-02-28 11:58:02
Original
4152 people have browsed it

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.

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;;
  ?>
Copy after login

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!

Related labels:
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