Problem connectiong to MSSQL

A

Anonymous

Guest
Hi

I didn't know were to post this so I posted it here!

I need to connect to a MSSQL database from PHP. I have decomented the
Code:
extension=php_mssql.dll
line in php.ini and the dll is in the extensions folder but when I run the script, it sais:

Unknown():mssql: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match

I've tried to search the net but I haven't found any answers. Please, can you help me?

Thanks
 
Doesn' anyone know?

Well then tell me how do I install the MSSQL module to php. From what I have read in the manual, I just need to decoment that line of code with the mssql.dll....

Is that true? Maybe I haven't installed it properly.

Thanks
 
Okej..the problem is that your mssql module version is not the same as hardcoded into php compilation.. I would recommend that you use mssql.dll from the same package as your php installation..
 
Well....that much I figured out but the real problem is that I downloaded the php.exe file from the website and I installed it....

Shouldn't the 2 modules match :eek:
 
Back
Top