“Call to undefined function sqlsrv_connect()” when trying to connect to Azure DB from PHP

后端 未结 2 651
生来不讨喜
生来不讨喜 2020-12-02 02:05

I\'m trying to connect from php to Azure DB by

$connectionInfo = array(\"UID\" => \"xxx@xxx\", \"pwd\" => \"xxx\", \"Database\" => \"xxx\");
$server         


        
2条回答
  •  孤城傲影
    2020-12-02 02:41

    I added this dll to the ext/ folder then added extension=php_sqlsrv.dll to the php.ini in the php7/ folder.

提交回复
热议问题