ODBC Connection

Category: sql server driverphp


jenald on Mon, 29 Aug 2016 17:47:03


I'm currently developing a PHP-Application, that stores data in a Microsoft SQL database. I tried connecting to the database with the sqlsrv driver, but the driver showed an error-message and said, that the ODBC driver is missing. So I installed this driver and now nothing works. When I request any page on the server, my browser can't finish loading it. There is no timeout-message, it just loads forever.

When I try executing the script on the command line it works perfectly, but not via http. Can someone help me with this? What is wrong with the ODBC driver?

Perhaps you need the following information: I use PHP 5.6 and SQLSRV 3.2.

Thankyou in advance


AV111 on Mon, 29 Aug 2016 18:14:04


DownloadDownload PHP Driver

Microsoft Drivers for PHP for SQL Server Version Version of Microsoft ODBC Driver for SQL Server or SQL Server Native Client
4.0 Microsoft ODBC Driver 11 for SQL Server or Microsoft ODBC Driver 13 for SQL Server. To download the x64 package for 64-bit operating systems, or x86 package for 32-bit operating systems, see the Microsoft ODBC Driver 11 for SQL Server page orMicrosoft ODBC Driver 13 for SQL Server page