Server IP : 68.65.122.142  /  Your IP : 13.58.166.144
Web Server : LiteSpeed
System : Linux server167.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : glenirhm ( 1318)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/glenirhm/mygc.glenbowcollege.ca/common/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/glenirhm/mygc.glenbowcollege.ca/common/connectPDO.php
<?php

include('config.php');

// Try and connect using the info above.
// connect with pdo 
try {
	$pdo = new PDO("mysql:host=$DATABASE_HOST;dbname=$DATABASE_NAME;", $DATABASE_USER, $DATABASE_PASS);
}
catch(PDOException $e) {
	die('pdo connection error: ' . $e->getMessage());
}

?>