Question

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


Hello,

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


Sponsored



Replies

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


https://msdn.microsoft.com/en-us/library/cc296170%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396

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