Web Design
Mobile Internet
Brand Design
Innovative
News
Encyclopedias

Re understanding PHP

Date:2016-12-09 Source: Shangpin China Type: website encyclopedia
Word Size: small   medium   big

PHP is a language that computers can understand. So PHP language can be used for programming. Human communication language is not only Chinese, English, but also German, French, etc., so the computer communication language is not only PHP language, but also C/C++language, but its uses are different. For example, Chinese is mainly used in countries where Chinese exchanges, while English is mainly used in countries where English exchanges.

PHP is mainly used in the Web Website construction Domain. PHP has been adopted by more than 20 million websites since its birth in 1994, and the world famous Internet company Yahoo Goolge.、 YouTube and well-known Chinese websites Sina, Baidu, Tencent and TOM are classic applications of PHP technology. At present, PHP has become one of the most popular Web development languages in the world.

Web is the abbreviation of World Wide Web, which is abbreviated as WWW, and its Chinese name is "World Wide Web". WWW provides users with call network service based on Hyper Text Markup Language (HTML) and Hyper Text Transfer Protocol (HTTP). WWW is based on the client/server model. This structure is called B/S structure. Under this structure, the user working interface is realized through WWW browser. A small part of the transaction logic is implemented in the front browser, and the main transaction logic is implemented in the server. HTML and JavaScript can be considered to work in the front browser, PHP works on the server side.

Input to the server. If the amount of data is large, it will increase the consumption of network and server resources. By using JavaScript, data verification can be performed on the client side, thus reducing the consumption of network and server resources. In addition, JavaScript can also be used to manipulate various browser objects. You can use JavaScript to control the appearance, status, and running mode of the browser. You can also "customize" the browser according to user needs.

PHP is free software with Linux system, Apache Web server and MySQL database. Its source code is completely open and anyone can freely use it for free. So in the Web field, PHP and Linux system, Apache Web server and MySQL database have become the best partners. The industry has combined their first English letters, referred to as "LAMP". A website structure composed of HTML, JavaScript, PHP and MySQL databases is usually shown in Figure 1.
 PHP dynamic website structure chart


When a user uses a browser to access the Apache Web server and start an interaction, if there is a client transaction, use JavaScript to process it, and then submit it to the server. The PHP program starts to process the request submitted by the user. If the user needs to query the data in the MySQL database, PHP will connect to the MySQL database, fetch the data, and process it according to the user's requirements, It is converted into HTML format text and returned to the browser. Finally, the user can see the results through the browser.


Please contact our consultant

+86 10-60259772

Please provide your contact number. The project manager of shangpin China will contact you as soon as possible.