Last active
December 14, 2015 13:38
-
-
Save joshuakfarrar/5094417 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function __autoload($class_name) { | |
if (file_exists($class_name . '.class.php')) { | |
require_once "$class_name.class.php"; | |
} | |
else { | |
require_once str_replace( '_', DIRECTORY_SEPARATOR, $class_name ).'.php'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment