| Installing PHP On Windows |
|
|
|
|
Binding The PHP Installation With Apache2
This is done via Apache's httpd.conf file. Apache reads this file and understands what modules need to be loaded and where these modules are located.
It is not mandatory to have Apache web server installed in order to test .php scripts.
These scripts can simply be run using the interpreter php.exe. This can be accomplished by appending the .php script file as a command line argument to php.exe interpreter.
There are two ways to configure Apache to use PHP.
One is to configure it to load the PHP interpreter as an Apache module.
The other is to configure it to run the PHP interpreter as a CGI binary.
It is recommended that PHP is loaded as a module in Apache, since it runs more efficiently that way, unless there is a specific reason for running PHP as a CGI binary.
Edit Apache's httpd.conf file. Make sure the PHP mime type is specified and uncommented. The line should look like this:
Click here to download the complete E-Book.
|
PHP On Windows 












