Home > Backend Development > PHP Tutorial > Detailed explanation of PHP5.0 under Windows_PHP tutorial

Detailed explanation of PHP5.0 under Windows_PHP tutorial

WBOY
Release: 2016-07-21 16:00:20
Original
900 people have browsed it

PHP5 includes the following important features:
· Support for 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, 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 MySQL 4.1 and later versions.

 ·Bind SQLite database.

·Greatly improve the design of streams, including operating the underlying socket through streams

First, click here to download PHP5 FOR win32

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 For php.ini (same as php4)

Modify Apache’s httpd.conf file. Delete the original statements bound to php4.

Replace with the following lines:

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!

If so The same is true for 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

But this The first method is to copy all dll files to the windows system directory, php.ini and php.exe to the windows system directory

I have tried both of the above methods. Programs written in php4 can run!

For apache2 settings:

1. Do not AddModule mod_php5.c

2. LoadModule php5_module c:/php/php5apache2.dll, it 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) to the above-mentioned directory. (98, me is system) next

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317144.htmlTechArticlePHP5 includes the following important features: · Supports the new object model and the Zend engine with many new features. ·Completely rewritten XML support, with extended performance built around the excellent libxml2 library (htt...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template