cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

PHP 7.3 Connection using sqlsrv_connect

Hello,

I am updating PHP from 5.6.40 to 7.3.8 and am having issues utilizing my sqlsrv_connect functions in PHP. Is there a new Microsoft Driver that I need to configure my PHP to use to get this working again?

 

Example Code:

I have an array $config that I'm storing the appropriate variables below:

$serverName = $config['serverIP'];
$connectionInfo = array( "Database"=>$config[database], "UID"=>$config[user],  "PWD"=>$config[password]);
$conn = sqlsrv_connect( $serverName, $connectionInfo);

 

This code works great in 5.6.40, but fails in 7.3.8.

I am fairly new to utilizing PHP and MS SQL Server. I appreciate any insight/direction you can provide. Thank you.

 

 - MuadDib