Xampp MS SQL PHP 5.6 Server

My xampp works with PHP 5.6. I usually use a mysql server, but for a script that already exists, I need an MS SQL server.

I searched the net and installed SQL Server 2012.

But now I need drivers for PHP. Unfortunately, I can only find a version that supports 5.4, 5.5 ..

( http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx )

Is there any way to enable this work with 5.6?

+5
source share
3 answers

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

Hope it works, I will check it.

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

+5
source

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

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

+12
source

I think the time to review this answer is a little better. Since you were pretty clear in the settings. The short answer is placed as the steps below.

  • Download ver 3.2 from the SQLSRV drivers. https://www.microsoft.com/download/details.aspx?id=20098
  • Extract them to your "xampp installation path" \ php \ ext
  • Please provide viewing and saving files: php_sqlsrv_56_ts.dll and php_pdo_sqlsrv_56_ts.dll
  • Please delete the extra 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, 
    • Put these lines in your php.ini on your "xampp installation path" \ php \ php.ini extension = php_sqlsrv_56_ts.dll extension = php_pdo_sqlsrv_56_ts.dll

    • Restart the XAMPP server and put '<'? php phpinfo () ;? '>' in the index.php file in the \ htdocs \ 'folder'

    • Go to it using http: // localhost / 'where phpinfofile' / index.php is located

If you see something like this image below. Made Congratulations ! [enter image description here ] 1

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

+2
source

Source: https://habr.com/ru/post/1207667/


All Articles