What is the relationship between apache and php?

For example, we practice in their own computer how to do the site, we need to build a local environment, the local environment is PHP + APACHE + MYSQL environment, so you can make our computers have the required PHP runtime environment up. So what is the relationship between php and apache.

 

The Apache  : Web server software, responsible for responding to all Web requests received.

Similar products such as Microsoft's IIS. Function is to allow one computer can provide service www. Local environment can be accessed via the local website 127.0.0.1 this IP.

PHP  : is the server-side language.

After loading the apache, the apache add functionality to explain the php file. So that this server can run php programs. Access methods are as follows: Address / .php file name

The relationship between apache and php

We can server as a restaurant, apache is the pantry helper store, php kitchen chef.

Some beverages like (static resources, such as: HTML, CSS, JS, Images, etc.), without going through the chef, the pantry helper passed directly to the customer (Client).

If you need to cook cooking dishes (for example:. * PHP, etc.), and so you need to cook the raw ingredients (php) finished cooking becomes possible to eat meals (static resources) used Please add php group: Click into the group

Guess you like

Origin www.cnblogs.com/IT-SUJIU/p/11692919.html