Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Config
- {
- const host = "dbserver";
- const name = "dbname";
- const user = "dbuser";
- const pass = "dbpass";
- }
- include "config.php";
- $db = MySQLWrapper(Config::host, Config::name, Config::user, Config::pass);
- //... init sessions, spl_autoloads, class maps and other stuff
- require_once "full path to init.php"
- create page
Add Comment
Please, Sign In to add comment