The nearest PHP version can be downloaded here
Http://www.php.net/downloads.php Installs the basically no change on the UNIX platform 1. $ Gunzip -5.xxtar.gz 2. $ TAR XVF -5.XXTAR 3. $ CD -5.XX 4. $ ./configure 5. $ make 6. # make install 7. # apachectl restart ./configure configuration command Depending on the installation steps may require additional parameters, you want to run the make and make install command you have root permissions. XML Window users can choose pre-compiled binary packages or get the source code yourself compile. PHP5 has many new expansion libraries. In order to use them correctly, you must use some new configuration options, which are primarily divided into three groups: XML, database, and other options.
Table XML extension tab
Feature PHP4 PHP5 LIBXML2 N / A --DISABLE-LIBXML - WITH-LIBXML-DIR = DIR DOM --WITH-DOM = [DIR] - with-DOM-XSLT = [DIR] - with-Dom-Exslt = [DIR] --DISABLE-DOM SIMPLEXML N / A --DISABLE-SIMPLEXML SOAP N / A --NABLE-SOAP XSLT --Nable-xslt --with-xslt-sablot =
PHP5 The biggest difference is that it uses libxml2 in the system as the underlying support library. If it is not found in the system, then you must use the with-libXML-DIR = DIR option to display the specified specified. Other XML extensions, such as DOM and SAMPLEXML are also supported using libXML2 as the underlying, so the entire configuration process only needs to be set. The same SAX is no longer based on the expat library, but is based on the libXML2 library. But you can still use the EXPAT library, you have to install it because it is not bound to the PHP5 issuing package. The XSLT processor, Sablotron in PHP5 is no longer supported, converted to libxSLT because libxslt is based on libxml2. This seems to be a matter of course. The biggest difference in database php5 is no longer bound MySQL client libraries, however you want to use yourself to download and install it yourself. In addition, there is a new extension called MySQLI, and should be used in conjunction with the server above the mysql4.1. The new database options are as follows
Feature PHP 4 php 5 mysql --with-mysql [= dir] --with-mysql = DIR mysqli n / a --with-mysqli = file sqlite n / a --without-sqlite - enable-SQLite-UTF8
Because MySQL client libraries are no longer included in PHP5, you must use the --with-mysql option to know its location, for MySQLI, you want to specify the location of the mysql_config file rather than the location of the directory, Mysql will extract from this file. Installation Information. Remember. MySQLI can only work on the MySQL 4.1.2 and the above version of the MySQL server, if you need to use the MySQL and MySQLI database client libraries, it is recommended to use the mysql server above the 4.1.2 version.