Steve Yelvington wrote:
There are two ways to install PHP.
One is as a normal CGI processor. CGI stands for \\\\\\\\\\\\\\\\"common gateway interface.\\\\\\\\\\\\\\\\" Any language can be used to write CGI programs. If you use PHP as a CGI program, the Web server will read your PHP script, discover that it requires PHP to execute it, then load PHP from disk and hand control over to PHP.
The other way to install PHP is as a server module. In this case, PHP is loaded into memory as part of the Web server program when the server starts up. Whenever the Web server sees a file that ends with an extension that has been assigned to PHP, it will hand control over to the PHP module for processing.
The server module will be much faster than the CGI program because PHP is already up, running, and available to do the work when it\\\\\\\\\\\\\\\\'s time to process your PHP page.
Most PHP installations are server modules.
There are server modules for other languages as well; it is possible to use Perl and TCL under Apache, for example.