class-smtp.php,class.smtp.phpPHP5.3.1 不再支持ISAPI

要在IIS6上使用高版本PHP,必须安装fastCGI扩展,

Microsoft FastCGI Extension for IIS 5.1 and 6.0

电脑技术002pc网认为此文章对《class.smtp.phpPHP5.3.1 不再支持ISAPI》说的很在理,www.002pc.com为你提供最佳的PHP资料,学习编程。

然后让你的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

更多:class.smtp.phpPHP5.3.1 不再支持ISAPI

https://www.002pc.comhttps://www.002pc.com/phpbiancheng/3627.html

你可能感兴趣的PHP5.3,ISAPI,不再,支持

No alive nodes found in your cluster

0踩

0 赞

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值