ok
Direktori : /proc/self/root/home2/selectio/www/vijay-gases/config/ |
Current File : //proc/self/root/home2/selectio/www/vijay-gases/config/config.php |
<?php ini_set('error_reporting', E_ALL); date_default_timezone_set('Asia/Kolkata'); $dbhost = 'localhost'; $dbname = 'selectio_vijay_gas'; $dbuser = 'selectio_vijay_gas'; $dbpass = 'selectio_vijay_gas'; try { $pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch( PDOException $exception ) { echo "Connection error :" . $exception->getMessage(); header("location: db-connection-error.php"); }