PHP5.3.1 不再支持ISAPI

yipeiwu_com6年前PHP代码库
要在IIS6上使用高版本PHP,必须安装fastCGI扩展,

       Microsoft FastCGI Extension for IIS 5.1 and 6.0

        然后让你的IIS6支持fastCGI即可。

  然后设定一下php.ini中的CGI and FastCGI参数:

  fastcgi.impersonate = 1

  fastcgi.logging = 0

  cgi.fix_pathinfo=1

  cgi.force_redirect =0

  cgi.rfc2616_headers=1

  然后制作一个批处理文件,运行一下代码:

  c %windir%\system32\inetsrv\fcgiconfig.js -add -section:"PHP" ^

  -extension:php -path:"C:\PHP\php-cgi.exe"

  将C:\PHP\php-cgi.exe替换成自己的安装路径!

  如果你在使用phpMyadmin 3.1.0rc版,需要将.libraries/select_lang.lib.php 则需要将147,148行的

  if (($envType == 1 && eregi('^(' . $expr . ')(;q=[0-9]\\.[0-9])?$', $str))

  || ($envType == 2 && eregi('(\(|\[|;[[:space:]])(' . $expr . ')(;|\]|\))', $str))) {

  更换为:

  if (($envType == 1 && preg_match('^(' . $expr . ')(;q=[0-9]\\.[0-9])?$', $str))

  || ($envType == 2 && preg_match('(\(|\[|;[[:space:]])(' . $expr . ')(;|\]|\))', $str))) {

  否则会报错:

  in .\libraries\select_lang.lib.php#147

  eregi() is deprecated

  Backtrace

  .\libraries\select_lang.lib.php#147: eregi()

  .\libraries\select_lang.lib.php#81: PMA_langDetect(

  string zh-cn,

  integer 1,

  )

  .\libraries\select_lang.lib.php#361: PMA_langCheck()

  .\libraries\common.inc.php#560: require_once(.\libraries\select_lang.lib.php)

  .\index.php#34: require_once(.\libraries\common.inc.php)

  另外注意:在IIS上安装PHP5.3.1,官方推荐Non-thread-safe build of PHP

  下载地址:

  PHP for Windows: Binaries and Sources Releases.

  详细介绍:http://www.php.net/manual/en/install.windows.iis6.php

相关文章

phplot生成图片类用法详解

本文实例讲述了phplot生成图片类用法。分享给大家供大家参考。具体分析如下: phplot是一个利用php的图象函数编写的一个自动生成类,首先申明一下,我对他也只是了解. 在原来的有些...

PHP使用pdo连接access数据库并循环显示数据操作示例

本文实例讲述了PHP使用pdo连接access数据库并循环显示数据操作。分享给大家供大家参考,具体如下: PDO连接与查询: try { $conn = new PDO("odbc:...

php中实现可以返回多个值的函数实例

本文实例讲述了php中实现可以返回多个值的函数用法。分享给大家供大家参考。具体分析如下: 在python和golang中都有一个函数同时返回多个值的方法,其实php也可以,但相比pyth...

php 字符串函数收集

1查找字符位置函数: strpos($str,search,[int]):查找search在$str中的第一次位置从int开始; stripos($str,search,[int]):函...

PHP has encountered an Access Violation at 7C94BD02解决方法

解决方法如下: php for windows的bug 参考: 第一种可能: 去掉 php中 eaccelerator 的扩展 这样做能够解决您的问题,不过可能会加重系统负担 因为eac...