diff --git a/www/config.sample.php b/www/config.sample.php new file mode 100644 index 0000000000000000000000000000000000000000..7e8670fbf21b2d6292edb7702d479db7e2674727 --- /dev/null +++ b/www/config.sample.php @@ -0,0 +1,18 @@ +<?php +function autoload($class) +{ + $class = str_replace('_', '/', $class); + include $class . '.php'; +} + +spl_autoload_register("autoload"); + +set_include_path(dirname(__FILE__).'/../src'.PATH_SEPARATOR.dirname(__FILE__).'/../lib/php'); + +$db = new PDO( + 'mysql:host=localhost;dbname=wdn', + 'wdn', + 'wdn' +); +ini_set('display_errors', true); +error_reporting(E_ALL); \ No newline at end of file