Frage

Ich versuche, die Verwendung der PHP-Treiber für MS SQL Server, Version 1.0.

zu machen

ich alles eingerichtet haben, aber ich denke, dass ich Schwierigkeiten beim Laden habe auf die Erweiterung php_sqlsrv_ts.dll . Ich habe auf der Kommandozeile weg und versuchen Sie dies:

C:\wamp\bin\php\php5.3.0>php.exe --re sqlsrv
Exception: Extension sqlsrv does not exist

C:\wamp\bin\php\php5.3.0>php.exe --re sqlsrv_ts
Exception: Extension sqlsrv_ts does not exist

In meiner PHP.ini - ich habe:

;extension=php_sqlsrv.dll
extension=php_sqlsrv_ts.dll

Thread sicher ist für mich aktiviert daher die Verwendung von php_sqlsrv_ts.dll . Mein extension_dir ist richtig, weil ich von dort andere Module laden. Ich habe auch Microsoft Native Client 2008 zu. Jedesmal, wenn ich meinen PHP-Skript auszuführen, erhalte ich:

Fatal error: Call to undefined function sqlsrv_connect()

Es muss etwas mit dem Modul nicht loadaed Aufbau. Ich kann alle Erweiterungs Infos für MySQL erhalten, aber nicht für sqlsrv Erweiterung.

Wie kann ich PHP diese Erweiterung zu laden?

Dank all

EDIT

Apache_Error_log:

PHP Warning:  PHP Startup: sqlsrv: Unable to initialize module\nModule compiled with module API=20060613\nPHP    compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
PHP Warning:  Module 'xmlrpc' already loaded in Unknown on line 0
[Tue Oct 13 14:51:16 2009] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Tue Oct 13 14:51:16 2009] [notice] Server built: Dec 10 2008 00:10:06
[Tue Oct 13 14:51:16 2009] [notice] Parent: Created child process 11916
PHP Warning:  PHP Startup: sqlsrv: Unable to initialize module\nModule compiled with module API=20060613\nPHP    compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
<br />
<b>Warning</b>:  PHP Startup: sqlsrv: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
 in <b>Unknown</b> on line <b>0</b><br />
PHP Warning:  Module 'xmlrpc' already loaded in Unknown on line 0
<br />
<b>Warning</b>:  Module 'xmlrpc' already loaded in <b>Unknown</b> on line <b>0</b><br />
War es hilfreich?

Lösung

Das ist ein Versionskonflikt. Das Modul wurde für eine frühere Version von PHP kompiliert als für Mod_php verwendet wird. Sie müssen das Modul mit der Version auf dem Server erstellen.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top