PHP5.3.1 不再支持ISAPI

yipeiwu_com5年前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

相关文章

php下把数组保存为文件格式的实例应用

我使用过两种办法: 第一种是数组序列化,简单,但是调用时比较麻烦一些;第二种是保存为标准的数组格式,保存时麻烦但是调用时简单。 第一种方法: PHP代码 复制代码 代码如下: $file...

php cli模式学习(PHP命令行模式)

php cli模式学习(PHP命令行模式)

php_cli模式简介 php-cli是php Command Line Interface的简称,如同它名字的意思,就是php在命令行运行的接口,区别于在Web服务器上运行的php环境...

php 无限级缓存的类的扩展

复制代码 代码如下:<?php /** * 功能: 根据条件建立分类缓存减少类别使用 * 创建日期:Thu May 31 15:55:11 CST 2007 * 最后更新: * 作...

php array_map使用自定义的函数处理数组中的每个值

array_map 将回调函数作用到给定数组的单元上。 说明 array array_map ( callable $callback , array $arr1 [, array $....

php转换上传word文件为PDF的方法【基于COM组件】

本文实例讲述了php转换上传word文件为PDF的方法。分享给大家供大家参考,具体如下: 以前用过office组件转换上传文件word同时转换为html文件,这次要将word文件转换为p...