I'm trying to autoload my classes, but I keep getting
Fatal error: Uncaught Error: Class "Database" not found in C:xampphtdocslogapp equire.php:9 Stack trace: #0 C:xampphtdocslogpublicinicheader.php(15): require_once() #1 C:xampphtdocslogindex.php(3): include('C:xampphtdocs...') #2 {main} thrown in C:xampphtdocslogapp equire.php on line 9
spl_autoload_register(function($class){
(__FILE__) . DIRECTORY_SEPARATOR . str_replace('\', DIRECTORY_SEPARATOR , strtolower($class)) . '.php';});
$db = new Database();
$core = new Core();