A
A
Alexander Morgunov2017-08-09 09:42:39
PHP
Alexander Morgunov, 2017-08-09 09:42:39

SQLSRV and PHP 5.6, how to make friends?

Here's the thing: it was necessary to add drivers to work with the mssql database. I, as usual, downloaded the DLLs from the official site, added them to the folder with all php extensions. Added a couple of lines to the php.ini file:

extension=php_pdo_sqlsrv_56_ts.dll
extension=php_sqlsrv_56_ts.dll

The most interesting thing is that the PDO object was not assembled because it did not find the driver. Checked phpinfo(), sqlsrv was listed there, PDO_sqlsrv was also supported. I decided to look into php -m, and I did not find the sqlsrv and pdo_sqlsrv I needed in the list. No errors, except for the PDO object build error, were noticed. What is the reason?
PS: there is nothing like that in the php logs either, all extensions are loaded without errors.
PPS: the server is local, using PHP 5.6 and Apache 2.4. Bit depth 32 bits. (by the way, the control panel for the OpenServer server, but they don’t have the information I need on the website and forum)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question