ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/subamangala/admin/config/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/subamangala/admin/config/config.php

<?php
ini_set('error_reporting', E_ALL);

date_default_timezone_set('Asia/Kolkata');
$dbhost = 'localhost';
$dbname = 'selectio_subamangala_matrimony';
$dbuser = 'selectio_subamangala_matrimony';
$dbpass = 'selectio_subamangala_matrimony';
try {
//	$pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass);
	$pdo = new PDO( 
    'mysql:host=localhost;dbname=selectio_subamangala_matrimony', 
    'selectio_subamangala_matrimony', 
    'selectio_subamangala_matrimony', 
    array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") 
); 
	$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	$statement = $pdo->prepare("SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION';");
	$statement->execute();
}
catch( PDOException $exception ) {
	echo "Connection error :" . $exception->getMessage();
 	header("location: db-connection-error.php");
}

Zerion Mini Shell 1.0