没有配置好 PHP 与 MS SQL Server 数据库的连接!
如果您对服务器有管理权限,可以参考下面的提示操作。如果您使用的是虚拟主机,请联系空间管理商解决。
如在 win 下运行本程序,需要对 php.ini 进行修改,把 ;extension=php_mssql.dll 前面的分号去掉,保存修改后重启Web服务!(我在文件里面找不到这句话,如实自己加上这句话,然后再PHP安装目录里面的\PHP\ext里面放上php_mssql.dll 这个文件 本身没有在网上D下来的)
如在 Linux 下运行本程序,需要给 php 增加 mssql 的支持模块!
按照上面的我修改了 出现如下的错误
FastCGI Error
The FastCGI Handler was unable to process the request.
--------------------------------------------------------------------------------
Error Details:
The FastCGI process exceeded configured activity timeout
Error Number: 258 (0x80070102).
Error Description: μè′yμ?2ù×÷1yê±?£
HTTP Error 500 - Server Error.
Internet Information Services (IIS)
去掉这句话就可以运行PHP文件
PHPinfo()
PHP Version 5.3.5
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"
Server API: CGI/FastCGI
Virtual Directory Support: disabled