Php note 1.0 -- php introduction, working principle, running environment, file composition, syntax structure, comments,
1.1 PHP hypertext Preprocessing Program. It is actually a script program for creating a website.
1.2 running environment: wamp -- windowns + apache + mySQL + php is often used for development, learning, and research.
Lamp-linux + apache + mySQL + php is often used for running and Maintenance
1.3 Working principle: the client accesses the website through a 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, after execution, php + HTML will generate a set of code --------> respond to the customer's browser -----> Generate a variety of pages
1.4 php file suffix, dynamic website, interaction with database
1.5 php composition: HTML, div, css
Php
JS, jquery, Ajax
1.6 environment setup: Integration Environment-appserv
Independent environments-Apache, php, mysql, and phpmyadmin
Development Environment -- zendstudio
1.7 syntax structure of php documents
Php delimiter 1) Standard delimiter xml style commonly used
2) Short mark
3) asp Style
4) script
Php delimiters can be placed anywhere in the document.
Note:Php code is case sensitive.
Each line of php code ends.
If Chinese characters on the webpage are garbled, add a header ("content-type: text/html; charset = UTF-8 ");
1.8 php comments: Explain the code and write it in the php delimiter.