Php note 1.0 -- php introduction, working principle, running environment, file composition, syntax structure, comments,

Source: Internet
Author: User

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.

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.