2010年9月12日星期日

A Combination of Apache, MySQL and PHP - AMP

AMP is a very famous and popular term in recent years. What is AMP? Actually, it is a solution stack which bundles the software such as Apache, MySQL and PHP to design dynamic web sites. It is for all computer platforms.

As a HTTP server, Apache parses HTTP files and passes the results to the terminal computers. PHP, which is an alternative to Asp, is a scripting language used to create dynamic web pages with syntax from C, Java and Perl. PHP code is embedded within HTML pages for server side execution. It is commonly used to extract data out of a database and present it on the web pages. The best choice database for PHP is the MySQL database, which is widely used all over the world. SQL systems consist of a set of databases. Each database consists of one or more tables in which data are stored.

For instance,like in a restaurant, a web site visitor (the customer) clicks on a web site and asks some pages which include PHP code. PHP is like the waiter. He gets the orders and sends it to the chef, who here means the Apache. Apache is a web server parsing any file requested by a browser and displaying the correct results according to the code within that file. The MySQL database is the same as the kitchen's stockroom. Apache (the chef) retrieves the data from it and sends them to the visitor (customer). This is the whole process how AMP works.

1 条评论:

  1. Hi Karen, great to see your understanding of these technologies. Is this something that you will be using for your project? How will it work in your case?

    Oanh

    回复删除