I having been using PHP 5.0.4 for some time now, and have edited the php.ini on occasion. I have two DLLs that I have included into the ini file (php_mysql.dll and libpdf_php.dll) and both have been working on my server since I original installed PHP (approx. 3 months). However, I now need to interface also with a MS SQL server. So I found out that I need php_mssql.dll. Found the DLL in the original ZIP file that I used to install PHP onto my system, and dropped the DLL into the same folder that the other DLLs are located. Checked the permissions to make sure that IUSR is included with full permissions, and updated the ini file to include this new DLL. However, now when I refresh any PHP page, the thing just hangs up and times out. I commented out the line for the DLL and everything works fine. I tried to use the dl function in a php page, and got the following warning:

Warning: dl() [function.dl]: Unable to load dynamic library '.\ext\php_mssql.dll' - The specified module could not be found. in C:\floodlabs.com\secure site\info.php on line 1

I know the file is there, and I used the file_exists function to check to make sure that PHP can see the file. Sure enough it can. The version I have for the DLL is 5.0.4.4. Any ideas?

    Well it turns out the release from PHP for the php_mssql.dll also needs ntwdblib.dll (which comes also with the ZIP file). However this version (7.0) does not work with PHP 5.0.4. What you need is the verison 8.00.194, which you can get from an installation of SQL Server.

      Write a Reply...