Ich habe noch nie PHP verwendet und versuche mich mit einer SQL Server 2008-Instanz auf einem Windows-Rechner mit IIS7 und PHP5.3 zu verbinden.PHP Schwerwiegender Fehler: Aufruf zu undefinierter Funktion mssql_connect()
Ich habe heruntergeladen und installiert SQLSRV30.EXE
von here in C:\Program Files (x86)\PHP\ext
hat dieses Bild zu C:\Program Files (x86)\PHP\php.ini
:
extension=php_sqlsrv_53_nts.dll
Dann den gesamten Server neu gestartet. Ich bekomme immer noch schwerwiegende Fehler in meiner Protokolldatei zu sagen:
PHP Fatal error: Call to undefined function mssql_connect()
Was muss ich tun, um Microsoft SQL Server 2008 von PHP 5.3 läuft auf IIS7/Windows Server 2008 zu verbinden? Ich bin sicher, dass es etwas wirklich dumm ist, dass ich vermisse ...
FULL PHPINFO ->http://demo.mandibleweb.com/zapified/hello.php
phpinfo():
PHP Version 5.3.10
System
Windows NT MWD001 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
Build Date
Feb 2 2012 20:10:58
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=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze"
Server API
CGI/FastCGI
Virtual Directory Support
disabled
Configuration File (php.ini) Path
C:\Windows
Loaded Configuration File
C:\Program Files (x86)\PHP\php.ini
Ich hatte eine ähnliche Situation (kein MySQL-Block), und meine Lösung ist hier: http://StackOverflow.com/Questions/5179535/Fatal-Error-Call-to-undefined-Function-Mysql-Connect-in-C -apache-htdocs-test –