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

后端 未结 1 473
陌清茗
陌清茗 2021-01-14 11:50

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 i

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 12:30

    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

    enter image description here

    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%

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