/ Published in: PHP
check out why the get_include_path() was appended to the new path.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function autoload($className) { require($className . '.php'); } $Database = new Database(); ?>
URL: http://www.brandonsavage.net/making-life-better-with-the-spl-autoloader/