Raspberry Pi_Eng_24.4.1 HTML and PHP


Published Book on Amazon


All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


24.4   PHP Web Script Language

 

24.4.1  HTML and PHP

 

24.4.1.1    Needs for PHP

 

On the Internet, all web servers use HTML to receive a request from web browser which is client, and then deliver the necessary data accordingly to the web browser to express it as a general form that human can understand. HTML (Hyper-Text Markup Language) allows a web server to communicate with a web browser and send/receive data each other, and return the processing results back to people.

 

In this HTML, there are basically static HTML and dynamic HTML. Static HTML means that the content displayed on a web page is always fixed and its content does not change over time. Therefore, if you want to modify the contents, you have to modify the HTML itself to express the page. Dynamic HTML, on the other hand, means HTML with the ability to change the contents of a web page into various forms according to various conditions. It has the function to deliver content in various data and formats by applying the desired conditions without changing the HTML with a basic web page. To construct such dynamic HTML, a separate tool is required. PHP is used for this purpose.

 

We will not describe all of the PHP functionality here, and we will only introduce functionality to the minimum extent necessary to describe the working principle. Additional learning should be done in a separate way.

24.4.1.2    Overview and Features of PHP

 

PHP is a tool that allows you to add dynamic HTML to a fixed web page that is composed of static HTML and use dynamic web pages that vary according to the user's request or situation by.

 

PHP is open source software that is free to use by default and can also be used with various open source tools associated with PHP.

 

Though PHP is a free, it is a tool to provide powerful function that is as good as any script language. PHP has been adopted to build many web sites around the world, and it is reported that over 40% of world's web sites is using PHP now.

 

For more detailed information on PHP, please refer to the followings:

    http://php.net/  

    http://www.w3schools.com/php/default.asp