Installation of Windows extensions ==================================After installing PHP and a webserver on Windows, you will probably want to install some extensions for added functionality. The following table describes some of the extensions available. As described in the manual installation steps, you can choose which extensions you would like to load when PHP starts by uncommenting the: extension=php_*.dll' lines in php.ini. ATTENTION! ATTENTION! ATTENTION! Some extra DLLs are required for some PHP extensions. Please copy the bundled dlls from the 'dlls/' directory in distribution package to your windows/system (Win9.x) or winnt/system32 (WinNT, Win2000, XP) directory. If you already have these DLLs installed on your system, overwrite them only if something is not working correctly. Before overwriting them, it is a good idea to backup them or move them to another folder - just in case something goes wrong.Download the latest version of the Microsoft Data Access Components (MDAC) for your platform, especially Microsoft Windows 9x/NT4 users. MDAC is available at http://www.microsoft.com/data/ .Also note that some extensions need 3rd party libraries, e.g. php_oci8.dll needs the Oracle 8 client libraries to be installed on your system. These are not bundled with PHP distribution. ATTENTION! ATTENTION! ATTENTION! The DLLs for PHP extensions are prefixed with 'php_'. This prevents confusion between PHP extensions and their supporting libraries.
http://www.phpstar.com/tutorial.htm
==================================After installing PHP and a webserver on Windows, you will
probably want to install some extensions for added functionality.
The following table describes some of the extensions available. As
described in the manual installation steps, you can choose which
extensions you would like to load when PHP starts by uncommenting the:
extension=php_*.dll' lines in php.ini.
ATTENTION! ATTENTION! ATTENTION!
Some extra DLLs are required for some PHP extensions. Please copy the
bundled dlls from the 'dlls/' directory in distribution package to your
windows/system (Win9.x) or winnt/system32 (WinNT, Win2000, XP) directory.
If you already have these DLLs installed on your system,
overwrite them only if something is not working correctly.
Before overwriting them, it is a good idea to backup them or move them to
another folder - just in case something goes wrong.Download the latest version of the Microsoft Data Access Components (MDAC)
for your platform, especially Microsoft Windows 9x/NT4 users.
MDAC is available at http://www.microsoft.com/data/ .Also note that some extensions need 3rd party libraries,
e.g. php_oci8.dll needs the Oracle 8 client libraries to be installed
on your system. These are not bundled with PHP distribution.
ATTENTION! ATTENTION! ATTENTION!
The DLLs for PHP extensions are prefixed with 'php_'. This
prevents confusion between PHP extensions and their supporting
libraries.
解压到C:\php下。
2、打开internet信息服务(也就是IIS)
点击默认WEB站点,点右键出现默认WEB站点属性。
点击ISAPI筛选器---->点添加,出现筛选器属性。
在输入框里输入:筛选器名称:php
可执行文件:C:\php\sapi\php4isapi.dll(在你PHP解压到的目录中找).
点击确定。
3、点击主目录,点下面一个[配置]按钮。出现应用程序配置。点击添加。
可执行文件还是:C:\php\sapi\php4isapi.dll(php4isapi.dll还是到你PHP解压的那个目录找)
扩展名为:.php(按同样的方法加入.phtml)
点击确定,完成IIS的配置。
4、到你PHP解压的那个目录:把php.ini-dist改名为php.ini
5、将php4ts.dll、php4ts.lib拷贝到c:\winnt\system32下。
6、还是你的PHP目录下,双击sapi目录下的pws-php4isapi.reg文件。加入注册表。(一定点确定)
7、安装mysql
8、重启你的机器,写一个文件如phpinfo.php内容如下
<?php
phpinfo ();
?>
把这个文件放到你web默认的目录下,在浏览器中输入:http://你的计算机名/phpinfo.php
如果能看到一个PHP表格。说明PHP没有问题。
****php.ini-dist改名后不要在动。
祝你成功。 有时间到http://www.f211.com/cgi-bin/ut/board_show.cgi?id=134&pg=2&age=30 有好多这方面的资料。
我按照呢是说的装在c:\server\program\下。在启动服务时都说找不到指定的路径请问时怎么回事?
也没有什么问题。不过可能有时你的iis没有禁止的话。
运行就不会正常了。