Install PHP5 in Windows. PHP is developing rapidly. the emergence of PHP5 makes it more powerful. The following describes how to configure PHP5. PHP5 includes the following important features: ◆ supports the rapid development of PHP with new object models and many new features. the emergence of PHP5 makes it more powerful. The following describes how to configure PHP5. PHP5 includes the following important features:
◆ Supports new object models and Zend engines with many new features.
◆ Completely re-compiled XML support, expansion performance around the excellent libxml2 library (http://www.xmlsoft.org /).
◆ New SimpleXML extension for easy access to PHP Objects.
◆ Brand new built-in SOAP extension, supporting Web service exchange.
◆ Added MySQL extension named MySQLi to support functions of MySQL4.1 and later versions.
◆ Bind the SQLite database.
◆ Greatly improve the stream design, including operating the underlying socket through the stream
Install PHP5 configuration in Windows
First, click here to download PHP5 FOR win32, and then let's get started. Taking PHP for Apache as CGI binary as an example, I like this method. Use the installation directory c: php as the example to delete the original php installation directory and decompress php-5.0.0-win32.zip to c: php. Rename php. ini-dist to php. ini (same as php4) and modify the httpd. conf file of Apache. Delete the original statement with php4.
Use the following lines instead:
- ScriptAlias /php/ "c:/php/"
- AddType application/x-httpd-php .php
- Action application/x-httpd-php "/php/php-cgi.exe"
Modify php. ini and remove ";" Before extension = php_mysql.dll. the default value is yes!
The same applies to PHP for Apache as module. Modify httpd. conf of Apache
- LoadModule php5_module c:/php/php5apache.dll
- AddModule mod_php5.c
- AddType application/x-httpd-php .php
In this way, all the DLL files stored in the shell are stored in the windows system directory, and php.ini follows php.exe to the windows system directory.
Both methods have been tried. All programs written in php4 can run!
Apache2 settings:
Do not AddModule mod_php5.c, LoadModule php5_module c:/php/php5apache2. dll, which is php5apache2. dll, you need to copy the dll file under the php Directory (the following files do not have to be copied: php5activescript. dll, php5apache. dll, php5apache_hooks.dll, and php5apache2. dll, php5isapi. dll, php5nsapi. dll. The above is the PHP5.0 configuration step, I hope to help you.
Bytes. PHP5 includes the following important features: ◆ supports new object models and many new features...