ok
Direktori : /home2/selectio/www/lilyexpresslive/expense-invoice/config/ |
Current File : /home2/selectio/www/lilyexpresslive/expense-invoice/config/config.php |
<?php ini_set('error_reporting', E_ALL); date_default_timezone_set('Asia/Kolkata'); $dbhost = 'localhost'; $dbname = 'lilyexp_expense_invoice'; $dbuser = 'lilyexp_expense_invoice'; $dbpass = 'lilyexp_expense_invoice'; try { $pdo = new PDO("mysql:host={$dbhost};dbname={$dbname}", $dbuser, $dbpass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $statement = $pdo->prepare("SET SESSION sql_mode = ''"); $statement->execute(); ini_set('memory_limit', '2048M'); } catch( PDOException $exception ) { echo "Connection error :" . $exception->getMessage(); }