aboutsummaryrefslogtreecommitdiffstats
path: root/A8_srv_build/config.inc
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-02-12 15:57:59 -0600
committerWilliam Harrington <kb0iic@berzerkula.org>2019-02-12 15:57:59 -0600
commit3b5a092df12e386624414f32962bfd500fbabcbb (patch)
treed36eafd2da29012631042d9bcaaa141eeca71bd9 /A8_srv_build/config.inc
parent00b1a72baba3c842abdf705ccf0664abf453d75c (diff)
Add A8 server build layout
Diffstat (limited to 'A8_srv_build/config.inc')
-rw-r--r--A8_srv_build/config.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/A8_srv_build/config.inc b/A8_srv_build/config.inc
new file mode 100644
index 0000000..ffea00e
--- /dev/null
+++ b/A8_srv_build/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);
+
+?>