how to connect SQL server with php web application using wamp server?

本小妞迷上赌 提交于 2019-12-01 06:08:00

问题


i am using wamp server 2.5 and php 5.5.12 and SQL server 2014.

i am trying to connecting a php application . but its giving me an error to connecting a database


回答1:


The MSSQL extension is not available anymore on Windows with PHP 5.3 or later. SQLSRV, an alternative driver for MS SQL is available from Microsoft: » http://www.microsoft.com/en-us/download/details.aspx?id=20098

Step by Step

  1. Download SQLSRV32.EXE (Microsoft Drivers for PHP for SQL Server) from: http://www.microsoft.com/en-us/download/details.aspx?id=20098

  2. Choose path: C:\xampp\php\ext

  1. Uncomment or Append extension = php_sqlsrv_55_ts.dll in php.ini

  2. Restart Apache from XAMPP Control Panel (Stop/Start)

I tested it and it works 100%



来源:https://stackoverflow.com/questions/28960139/how-to-connect-sql-server-with-php-web-application-using-wamp-server

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