PHP5 includes the following important features:
· Supports the new object model and the Zend engine with many new features.
· XML support has been completely rewritten, with extended capabilities built around the excellent libxml2 library ( http://www.xmlsoft.org/ ).
· New SimpleXML extension for easy access to PHP objects.
·New built-in SOAP extension to support the exchange of Web services.
·Add a MySQL extension named MySQLi to support the functions of MySQL4.1 and later versions.
·Bind to SQLite database.
·Greatly improve the design of streams, including operating the underlying socket through streams
. First, click here to download PHP5 FOR win32
and then let's get started.
Take PHP for Apache as CGI binary as an example. I like to use this method. Take the installation directory c:php as an example;
delete the original php installation directory, unzip php-5.0.0-Win32.zip to c:php,
rename php.ini-dist to php.ini (same as php4)
and modify it Apache's httpd.conf file. Delete the original statements bound to php4.
Replace these lines with:
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
modify php.ini and remove the ";" in front of extension=php_mysql.dll. It is available by default!
The same is true if it is PHP for Apache as module. . Modify Apache's httpd.conf
LoadModule php5_module c:/php/php5apache.dll
AddModule mod_php5.c
AddType application/x-httpd-php .php
However, this method requires copying all dll files to the windows system directory, php.ini and php.exe to the windows system directory
. I have tried the above two methods. Programs written in php4 can run!
For the settings of apache2:
1. Do not addModule mod_php5.c
2. LoadModule php5_module c:/php/php5apache2.dll, which is php5apache2.dll
3. You need to copy the dll files in the php directory (the following files do not need to be copied: php5activescript.dll, php5apache .dll, php5apache_hooks.dll, php5apache2.dll, php5isapi.dll, php5nsapi.dll) copied to the above mentioned directory (98, me is system)