FRIDAY, APRIL 02, 2010
MSSQL on PHP
Enabling the php_mssql.dll extension in php.ini might fail silently. If you look at the output of phpinfo(), there will be no references to mssql. A cryptic error message can found in the error log. It says:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mssql.dll' - The specified module could not be found.
This makes it sound like it couldn't find the php_mssql.dll file. It is clear that the dll file is in the correct location. Firing up Process Monitor, you can see that it has a dependency on ntwdblib.dll. This file is usually located in the PHP base directory... no problem there. However, this dll has a dependency on msvcr71.dll, which is not provided by PHP install. You need to locate the file on your harddrive and do one of the following:
Put the location in your PATH, and reboot.
Copy the file to the PHP base directory.
Until you do this, PHP will run fine, but if you look at the output of phpinfo(), you will not see any references to mssql.
Posted by Chet at 10:06 AM
Post a Comment
Feel Free To Share Your Thoughts
You can use [b], [u], [i], and [url]
More About Me
Philosophy for Understanding Theology
20,000 Leagues Under the Sea
Settlers of Catan
Misc Arduino projects