Неустранимая ошибка PHP: необнаруженная ошибка: вызов неопределенной функции sqlsrv_connect()Php

Кемеровские программисты php общаются здесь
Anonymous
Неустранимая ошибка PHP: необнаруженная ошибка: вызов неопределенной функции sqlsrv_connect()

Сообщение Anonymous »


I don't seem to be able to load the correct drivers for SQL server.

I work with Windows 10, PHP Version 8.2.1

In phpinfo():

Loaded Configuration File C:\Windows\PHP\php.ini extension_dir C:\Windows\PHP\ext in php.ini:

extension=php_pdo_sqlsrv_81_nts_x64.dll extension=php_sqlsrv_81_nts_x64.dll But when I look in the phpinfo() there is no sqlsrv.

Can anyone help me and tell me what I did wrong? How do I load those drivers?

I already read the post about this error, but none of them offer a solution.

I tried PDO.

When I use mysql, I can see it in phpinfo() But when I try with sql server I get "no value" in the PDO section under PDO drivers.

If I check with "print_r(get_loaded_extensions());", I can see that PDO is loaded.

When I try to connect, I get the message "Connection failed: could not find driver"


Источник: https://stackoverflow.com/questions/750 ... rv-connect

Вернуться в «Php»