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

Rookie Chat: PHP

WBOY
Release: 2016-08-15 16:49:47
Original
1591 people have browsed it

I have been learning PHP for 2 months. From a blank at the beginning to just getting started now, I have a better understanding of PHP. I hope that through my understanding of PHP, I can help more people. Newbies like me know PHP earlier. (PS: Part of the following content is excerpted from the book "PHP and MySQL Web Development from Novice to Master", because my language organization ability is too limited, please bear with me!)

PHP is a server-side programming language. This concept may be a bit difficult to understand for newbies at the beginning, and it is even harder to understand it if you have only used client-side languages ​​​​such as HTML, CSS, and JS to design Web sites.

A server-side language similar to JavaScript that allows embedding applets (scripts) in the HTML code of a web page. When executed, these programs use greater control over the content displayed in the browser window than they would using just HTML. The key difference between javascript and PHP is that when these embedded programs are executed, the Web page loading stage is different.

C Think of client language like JavaScript, after downloading and executing from the web page (embedded program and other content) from the web server. In contrast, server-side languages ​​like PHP have a web server running before the web page is sent to the server. Client-side languages ​​allow you to control the behavior of a page once the browser displays it. Server languages ​​allow you to generate customized pages in real time, before these pages are even sent to the browser.

Once the web server executes the PHP code embedded in the web page, the result of the execution will replace the position of the PHP code in the page. When the browser accepts the page, all it sees is standard HTML code. Therefore, this language is called "server-side language".

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!