I'm trying to connect to Microsoft SQL Server with PHP
To work with a mirrored database in the sql management studio I use "ApplicationIntent=ReadOnly" in the "Additional Connection Parameters" label.
How can I set this parameter in php?
Example of how I'm connection without the parameter:
$serverName = "server, port";
$connectionInfo = array( "Database"=>"my_db");
$conn = sqlsrv_connect( $serverName, $connectionInfo);