Home > php教程 > php手册 > body text

PHP Notes 1.0 PHP introduction, working principle, operating environment, file structure, grammatical structure, comments

WBOY
Release: 2016-11-16 10:24:07
Original
1313 people have browsed it

1.1 PHP Hypertext preprocessor. It’s actually a script program for making a website

1.2 Operating environment: wamp——windows+apache+mySQL+php Often used for development, learning and research

——LAMP -LINUX+Apache+MySQL+PHP is commonly used to run and maintain

1.3 Working principle:

The client accesses the website through the browser, which is equivalent to sending a request to the server---->Apache receives the request and points to the working directory------->Apache executes the php code, The executed php+HTML will generate a set of codes --------> respond to the customer's browser -----> generate colorful pages

1.4 php file

Suffix .php, dynamic website, interact with database

1.5 php composition:

HTML, div, css

php

JS, jquery, Ajax

1.6 Environment construction:

Integrated environment - appserv

                                                                                                                                                  ’ ’ zel ’ s

- Independently built environment - Apache, php, mysql, phpmyadmin

                                                                                                                                                                                                                                                                                                

1.7 Grammar structure of php document

php delimiter 1) Standard delimiter xml style Commonly used

2) Short tag

3) asp style

4)script

php delimiters can be placed anywhere in the document.

Note: php code is strictly case sensitive.

            Each line of php code ends with ";".

If the Chinese characters on the webpage are garbled, add a header("content-type:text/html;charset=utf-8");

Comments in php 1.8: Explain the code and write it within the php delimiters.

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template