Reputation: 2821
I have installed:
Everything works perfectly except the MSSQL driver for PHP. I have Googled a lot and downloaded lots of dll
files. Every time I get this error:
PHP Warning: PHP Startup: Unable to load dynamic library c:\php\ext\php_sqlsrv_54_nts.dll - %1 is not a valid Win32 application. in Unknown on line 0
Can anyone tell me that how can I find the specified driver? Thanks in advance.
Upvotes: 1
Views: 13783
Reputation: 4140
Sharing some of my findings:
Upvotes: 0
Reputation: 191
Here is a page from my blog with instructions on how to install the driver: http://robsphp.blogspot.com/2012/09/how-to-install-microsofts-sql-server.html
Look for text written in in orange which refers to my builds of the driver that support PHP 5.5 32 and 64 bit.
If you only want Microsoft's builds, avoid looking at anything written in orange.
Upvotes: 1
Reputation: 542
There's a clue in the file name php_sqlsrv_54_nts.dll
The "54" refers to PHP 5.4. The SQL Driver doesn't (officially) exist yet for PHP 5.5.
:(
Some people have worked on unofficial builds, but I would only use them for local testing. Microsoft sqlsrv extension for php 5.5.x
At present official releases only work with 5.4.x
Upvotes: 2