When you use windows authentication to connect to a database, sql server
Windows authentication mode and mixed-mod are the two authentication modes that the SQL Server supports.
The Microsoft Drivers for PHP for SQL Server by default tend to use Windows Authentication to connect to SQL Server.I most of the cases the thread identity is used to connect to the server. One needs to keep in mind that the credentials used for the web server’s process must map to a valid SQL server login. And if the web server and SQL server are on different computers, SQL Server must be configured to enable remote connections.