0

This is the error that is noted in the error log:

PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\IIS Express\PHP\v5.4\ext\php_sqlsrv_54_ts.dll' - The specified module could not be found.

This is the ini file:

extension_dir = "C:\Program Files (x86)\IIS Express\PHP\v5.4\ext\"
extension=php_sqlsrv_54_ts.dll

The file exits in the directory:

C:\Program Files (x86)\IIS Express\PHP\v5.4\ext\php_sqlsrv_54_ts.dll

phpinfo.php does not show a MSSQL Server section.

So for some reason, the dll is not getting loaded. I have tried both the thread-safe and non-thread-safe. The non-thread-safe does not show the load error, but it still doesn't load (doesn't show in PHP Info, nor lets the code run with the ms_sql functions.

Greg Gum
  • 33,478
  • 39
  • 162
  • 233
  • did you check if that path is legit? "could not be found" is pretty explicit... – Marc B Dec 08 '14 at 15:42
  • Yes the path is legit, I just added it to the above. – Greg Gum Dec 08 '14 at 15:43
  • "php_sqlsrv_54_ts.dll" is compiled on 64bit or x86? Note "_ts" means "Thread Safe" read about in: http://stackoverflow.com/questions/1623914/what-is-thread-safe-or-non-thread-safe-in-php – Protomen Dec 08 '14 at 15:44
  • I am actually not sure if they are 64 or x86, will check on that. – Greg Gum Dec 08 '14 at 15:47
  • PHP 5.4 is 32 bit, and the php_sql_srv_54_ts.dll is also a 32 bit version. I tried the unofficial 64 bit version of the driver and got a `- %1 is not a valid Win32 application.` error. – Greg Gum Dec 08 '14 at 16:06
  • @GregGum Use `@username`, for the reason that if you do not use your comment will ever get in my "inbox" and for this reason it took me to know that you had answered me. – Protomen Jan 02 '15 at 21:22
  • You using "Thread Safe"? – Protomen Jan 02 '15 at 21:24
  • @GuilhermeNascimento, thanks for the comments. This is no longer an issue that needs resolving. – Greg Gum Jan 14 '15 at 16:19
  • @GregGum You got the solution, if so post an answer to his own question, could help other users. – Protomen Jan 14 '15 at 16:22
  • @GuilhermeNascimento, unfortunately, I was unable to find a solution. I finally gave up on it. – Greg Gum Jan 14 '15 at 16:25
  • @GregGum Have you given up? If you enter the version that your PHP is thread-safe or not, someone probably would have succeeded in formulating an answer. I was waiting since 2. I do not understand why you gave up :) – Protomen Jan 14 '15 at 17:04

0 Answers0