I work with xampp PHP 8.1
I’m trying to connect to SQL Server.
I downloaded the drivers, but when starting xampp I get the message (in the log file) that the drivers are not found.
I have no idea what the problem is, because the extension file path is correct, the drivers are correct, but they won’t load.
2
Answers
To connect to a SQL Server database using PHP, you can use the sqlsrv_connect() function.
an exaple:
In order to connect with SQL database, you need your given DB username, password and PHP sqlsvr_connect() function.