Have an account? Sign in now.
New to GoDaddy? Create an account to get started today.
HelloI have a "Hosting - Web - Ultimate - Windows"My Plesk is running PHP Version 5.6.30I'm trying to connect in Sql server using sqlsrv_connect or PDOin both I'm getting an error message"This extension requires the Microsoft ODBC Driver 11 for SQL Server to communicate with SQL Server" In PDO I use the connection below$pdo = new PDO('sqlsrv:server=xx;Database=xx', 'xx', 'xx');------ in sqlsrv_connect :$connectionInfo = array( "Database"=>"xx", "ReturnDatesAsStrings"=> true, "UID"=>"xx", "PWD"=>"xx"); $data = sqlsrv_connect( $serverName, $connectionInfo); --------If I change my PHP Version to 5.4.45 in Plesk , the code works.
Copyright © 1999 - 2021 GoDaddy Operating Company, LLC. All Rights Reserved.