Xampp MS SQL server PHP 5.6

前端 未结 4 1221
执念已碎
执念已碎 2020-12-09 22:25

I have a xampp running with PHP 5.6. Normally I use mysql server, but for a script that already exists i need a MS SQL server.

I searched on the net and installed SQ

4条回答
  •  旧巷少年郎
    2020-12-09 23:21

    I believe it's time to revisit this answer a bit better. Since you've been pretty clear with your setup. The short answer is placed as steps below

    1. Download ver 3.2 of the SQLSRV drivers from here. https://www.microsoft.com/download/details.aspx?id=20098
    2. Do extract them to your "xampp installation path"\php\ext
    3. Kindly ensure you see and keep the files : php_sqlsrv_56_ts.dll and php_pdo_sqlsrv_56_ts.dll
    4. Please delete the redundant files below:

      PHP Drivers License Terms.rtf,
      php_pdo_sqlsrv_54_nts.dll,
      php_pdo_sqlsrv_54_ts.dll,
      php_pdo_sqlsrv_55_nts.dll,
      php_pdo_sqlsrv_55_ts.dll,
      php_pdo_sqlsrv_56_nts.dll,
      php_sqlsrv_54_nts.dll,
      php_sqlsrv_54_ts.dll,
      php_sqlsrv_55_nts.dll,
      php_sqlsrv_55_ts.dll,
      php_sqlsrv_56_nts.dll,
      release.txt,
      SQLSRV_Readme.htm,
      SQLSRV_ThirdPartyNotices.rtf,
      
      • Place these lines in your php.ini at your "xampp installation path"\php\php.ini extension=php_sqlsrv_56_ts.dll extension=php_pdo_sqlsrv_56_ts.dll

      • Restart your XAMPP server and place a '<'?php phpinfo(); ?'>' in an index.php file at \htdocs\'folder'

      • Navigate to it using http://localhost/'folder where phpinfofile is placed'/index.php

    If you see something like this image below. It's done, Congratulations![enter image description here]1

    PS : The long answer is here. https://msdn.microsoft.com/en-us/library/cc296170.aspx

提交回复
热议问题