You can use PHP, which is an HTML preprocessor, to embed scriptable elements directly in an HTML page. PHP is typically used as an alternative to Perl or Python when you develop dynamic Web sites. This article describes how to obtain and install PHP.
PHP is available in two different distribution packages:
A Zip Package: This package includes support for CGI-based PHP scripts and server API extensions for the ISAPI system that is supported by Internet Information Services (IIS). This package also comes with built-in support for interfacing to the MySQL database and a complete suite of additional extensions.
An Installer Package: This package includes support for CGI-based PHP scripts and MySQL. Support for ISAPI and additional external extensions are not included in this package. However, the Installer package installation is more straight forward.
Always choose the latest version of the package that you want to use. To download PHP, visit the following PHP Web site:
Double-click the installation package that you downloaded.
After you read the license agreement, click I Agree to accept the license agreement and continue the installation.
If you do not agree with the license, click Cancel to quit the installation.
Click either Standard or Advanced to select an installation method, and then click Next.
NOTE: You can complete a Standard installation quickly, but if you use an Advanced installation, you can customize the installation process to create backup copies of files that are typically overwritten during the installation process. Microsoft recommends that you use an Advanced installation if you are updating a previous installation of PHP.
Type the location of the installation folder that you want to use or click Browse to select the location from a file browser, and then click Next.
Click Yes if you want to back up any files that will be overwritten during the installation, and then click Next.
If you click Yes, click Browse to select the location of the files that you want backed up.
Type the location of the folder to which you want to upload files or click Browse to select the location to which you want the files uploaded, and then click Next.
Type the location of the folder that you want to use for storing session data or click Browse to select the location of the folder for this information, and then click Next.
Type the Internet Protocol (IP) address or the name of the Simple Mail Transfer Protocol (SMTP) server that is used when you send e-mail messages, type the e-mail address that is used to send e-mail messages, and then click Next.
Click any of the following settings to select the level of error reporting to use while you process PHP documents, and then click Next:
Display all errors, warnings and notices: All potential problems are logged.
Display all errors and warnings: Only typical errors are logged.
Display errors: Only errors are logged.
Select the type of server for which you want to configure PHP, and then click Next.
NOTE: PHP can automatically configure itself for use with IIS.
Select the file name extensions that the IIS server will identify as PHP documents, and then click Next.
Click Next to install PHP.
You may be prompted to select the Web servers for which you want to configure PHP processing. If so, click the Web servers for which you want to configure PHP, and then click OK.