Call to undefined function mssql_connect()
Posted: 30. May 2013 14:52
Hi,
I am trying to get XAMPP 1.8.1 to work with SQL Server 2012. I can't seem to get it to to work.
I have googled the problem and based on that I did the following:
(My XAMPP is installed in f:\xampp)
I edited f:\xampp\php\php.ini and uncommented:
extension=php_mssql.dll
I copied the file ntwdblib.dll (File version 2000.2.8.0) to the following folders:
f:\xampp\apache\bin
f:\xampp\php
I downloaded php_mssql.dll and put it in f:\xampp\php\ext
I restarted the Apache service.
I still get an error:
Fatal error: Call to undefined function mssql_connect() in F:\xampp\htdocs\mydomain\functions.php on line 14
I checked my phpinfo. There is no MSSQL section. MSSQL is only mentioned under COnfigure Command:
cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--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" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
I checked and the loaded configuration file is the one I edited.
Any assistance would be greatly appreciated.
I am trying to get XAMPP 1.8.1 to work with SQL Server 2012. I can't seem to get it to to work.
I have googled the problem and based on that I did the following:
(My XAMPP is installed in f:\xampp)
I edited f:\xampp\php\php.ini and uncommented:
extension=php_mssql.dll
I copied the file ntwdblib.dll (File version 2000.2.8.0) to the following folders:
f:\xampp\apache\bin
f:\xampp\php
I downloaded php_mssql.dll and put it in f:\xampp\php\ext
I restarted the Apache service.
I still get an error:
Fatal error: Call to undefined function mssql_connect() in F:\xampp\htdocs\mydomain\functions.php on line 14
I checked my phpinfo. There is no MSSQL section. MSSQL is only mentioned under COnfigure Command:
cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--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" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
I checked and the loaded configuration file is the one I edited.
Any assistance would be greatly appreciated.