Understanding How PHP Works with Apache
Apache uses MIME types to determine how to serve up specific files. For example, look at the PHP MIME type definition in the Apache configuration file:
AddType application/x-httpd-php .php .phtml
Whenever Apache is asked to serve up a file with a .php or .phtml extension, it identifies the file as a PHP file and utilizes the appropriate module (the PHP module) to help serve it. In PHP's case, the module provides communication with the PHP engine. The engine executes the PHP code and directs any output back to Apache for forwarding to the client.
Post a comment