1
0

euler fragment

This commit is contained in:
2017-10-29 18:52:46 +01:00
parent b5508477e2
commit 11a38315cd
5 changed files with 209 additions and 14 deletions

1
www/internals/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
config.php

12
www/internals/backend.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
$CONFIG = require 'config.php';
$dsn = "mysql:host=" . $CONFIG['host'] . ";dbname=" . $CONFIG['database'] . ";charset=utf8";
$opt = [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false,
];
$PDO = new PDO($dsn, $CONFIG['user'], $CONFIG['password'], $opt);