use central include file
[stapibas.git] / www / www-header.php
1 <?php
2 namespace stapibas;
3 header('HTTP/1.0 500 Internal Server error');
4 header('Content-type: text/plain');
5
6 require_once __DIR__ . '/../data/config.php';
7 require_once 'stapibas/autoloader.php';
8
9 $db = new PDO($dbdsn, $dbuser, $dbpass);
10 $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
11 ?>