php starup sqlsrv unable to initialize module

前端 未结 2 1694
清酒与你
清酒与你 2021-01-18 14:16

I am trying to connect MSSQL to PHP. i am following this tutorial. Anyway after i added the dll files as described in that tutorial, i get the following warning. How can i s

相关标签:
2条回答
  • 2021-01-18 14:56

    For anyone trying to get it to work with PHP 5.5 (PHP compiled with module API=20121212) then you can replace the dlls in the ext folder with new updated binaries >here<

    Don't forget to enable the new dlls in the php configuration.

    0 讨论(0)
  • 2021-01-18 14:58

    Looks like you've tried to install the sqlsrv extension for php 5.3 on a php 5.2 system.

    Either run <?php phpinfo(); ?> and look for the php version and look for the following entries:

    • PHP Version
    • Thread Safety

    pick the appropriate .dll from the sqlsrv driver: the version number must match and if thread safety is enabled pick the ts version, if not pick the nts version.

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