Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.133.149.244
<?php
// echo phpinfo();
// die();
error_reporting(E_ALL);
ini_set('display_errors', 'On');
try {
$hostname = "172.31.20.139";
$port = 1433;
$dbname = "BU_TESTDATA";
$username = "BU";
$pw = "bu@test1";
$dbh = new PDO ("sqlsrv:Server:=$hostname:$port;dbname=$dbname","$username","$pw");
echo $dbh;
} catch (PDOException $e) {
echo "Failed to get DB handle: " . $e->getMessage() . "\n";
exit;
}
?>
|