diff options
Diffstat (limited to 'config.inc')
-rw-r--r-- | config.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config.inc b/config.inc new file mode 100644 index 0000000..ffea00e --- /dev/null +++ b/config.inc @@ -0,0 +1,18 @@ +<?php + +//For Databases +$host = 'localhost'; +$db = 'A8_srv_build'; +$user = 'username'; +$pass = 'password'; +$charset = 'utf8'; + +$dsn = "mysql:host=$host;dbname=$db;charset=$charset"; +$opt = [ + PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, + PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, + PDO::ATTR_EMULATE_PREPARES => false, + ]; +$pdo = new PDO($dsn, $user, $pass, $opt); + +?> |