setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $_pdo->setAttribute(PDO::ATTR_ORACLE_NULLS, PDO::NULL_NATURAL); $_pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); } catch (PDOException $e) { die("Down until PDO error fixed."); } spl_autoload_register(function ($pClass) { $path = __DIR__ . "/$pClass.php"; if (file_exists($path)) require_once($path); });