Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to get PHP set up to connect to a SQL Server database. I'm looking for the php_mssql.dll file to put in my extensions directory but for the life of me can't locate it online. Can anyone help?

share|improve this question

2 Answers 2

Download the Zip (not installer) version of your version of PHP from the PHP site and extract it, you will find it in the ext folder here.

You can also try the Microsoft SQL driver for PHP

share|improve this answer
    
Yeah tried that but it aint there. I'm using the VC6 x86 Thread Safe version. There are a lot of dll's in there like mysql, ect but not msssql –  iamjonesy Aug 25 '10 at 11:01

You should find it in the "ext" directory of php package, but only of PHP 5.2.X, PHP 5.3 doesn't include dll for mssql.

share|improve this answer
    
It's not there. It is if i was to use PHP 5.2 but not in 5.3. will i have to downgrade? –  iamjonesy Aug 25 '10 at 11:04
    
For 5.3 (V6) you can try with sysbase extension. –  lg. Aug 25 '10 at 11:15
    
I uncommented the loadfile line in php.ini for the sybase module but after restarting apache and trying a connection i get call to undefined function. is there anything else i need to add? –  iamjonesy Aug 25 '10 at 12:51
    
Check with phpinfo() if sysbase module is active. Are you using Apache or IIS? –  lg. Aug 25 '10 at 14:25
    
Other options: pdo, odbc. –  lg. Aug 25 '10 at 14:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.