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 maintain1.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 fileSuffix .php, dynamic website, interact with database
1.5 php composition:HTML, div, css
phpJS, 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.