Call to undefined function sqlsrv_connect()

2019-08-20 22:00发布

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条回答
Juvenile、少年°
2楼-- · 2019-08-20 22:16

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

查看更多
登录 后发表回答