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

后端 未结 2 932
滥情空心
滥情空心 2020-12-20 16:57

Thought I\'d see if there were any sql server drivers for php 7. Another question on Stack Overflow pointed me to these drivers here

So I install php_sqlsrv_7_nts.d

相关标签:
2条回答
  • 2020-12-20 17:33

    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

    0 讨论(0)
  • 2020-12-20 17:37

    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

    0 讨论(0)
提交回复
热议问题