Unable to load dynamic library php_sqlsrv_7_nts.dll is not a valid Win32 application

Finally got this solved. Needed to install some more things before it would work, namely:

  1. Microsoft Visual C++ 2015 Redistributable (x86) which you can get from here

  2. The ODBC drivers which you can get from here


It works for me.

1.Download the extension windows 7.0 https://github.com/Microsoft/msphpsql/releases

2.And then according to the system requirement paste it in ext folder. Note: Paste only the thread safe version (php_pdo_sqlsrv_7_ts.dll , php_sqlsrv_7_ts.dll)

3.And edit the php.ini file add this extension to your php.ini file and restart and check

Tags:

Php 7