Reading from file (require)
问题 I have something like this: http://i.imgur.com/KPulyBg.png and im currently working on "admin" folder and inside of that i have "admin.php", but the problem is that i want to read "core/init.php" from there. Now i have this in admin.php <?php require '../includes/header.php'; ?> <?php $user = new User(); if(!$user->isLoggedIn()){ Redirect::to(404); } else if(!$user->hasPermission('admin')){ Redirect::to(404); } ?> <div id="content"> </div> <?php require '../includes/footer.php'; ?> And inside