Call to undefined function sqlsrv_connect()

左心房为你撑大大i 提交于 2019-12-12 03:09:30

问题


i wish to fire select query for login on user table . i am using php and ms msql server 2005 as backend

my php code is correct but my database is on other p.c in network. i need to know is there any configuration setting needed to be done. i am using xampp V 1.8.3 including php 5.5.1


回答1:


To install SQLSRV 3.0 to Apache (I assume) in Windows platform, here are the steps:

  1. Put the driver file in your PHP extension directory.
  2. Modify the php.ini file to include the driver. For example: extension=php_sqlsrv_53_nts_vc9.dll
  3. Restart Apache

Then, verify the installation using phpinfo().

Reference: TechNet



来源:https://stackoverflow.com/questions/20563146/call-to-undefined-function-sqlsrv-connect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!