Xampp MS SQL server PHP 5.6

前端 未结 4 1215
执念已碎
执念已碎 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 22:58

    Microsoft recently released a new version (3.2) of the SQL Drivers for PHP which includes compatibility with PHP 5.6.

    You can download the drivers here: https://www.microsoft.com/en-us/download/details.aspx?id=20098

    0 讨论(0)
  • 2020-12-09 23:01

    At this time: My solution was:

    1- Download ver 3.2 of the SQLSRV drivers from here. https://www.microsoft.com/download/details.aspx?id=20098

    2 Extract the files to your "xampp" folder into the \php\ext

    3- Add this lines to php.ini

    extension=php_pdo_sqlsrv_56_ts.dll

    extension=php_pdo_sqlsrv_56_nts.dll

    extension=php_sqlsrv_56_ts.dll

    extension=php_sqlsrv_56_nts.dll

    0 讨论(0)
  • 2020-12-09 23:18

    I searched the net for a while.. After posting this question for 10m, I finally found a unofficial driver..

    Hope this works, I will check this out..

    You can find it on: http://robsphp.blogspot.be/2012/06/unofficial-microsoft-sql-server-driver.html

    0 讨论(0)
  • 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

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