I have the following folder structure for my site:
Admin/
Tech/
index.php
classes/
include/
core/
Everything seems to work except for when i try to call the following code from Admin/index.php
<?php
#including our init.php
require '../core/init.php';
$general->logged_in_protect();
?>
I get the following error for some reason. I can't figure out what to do to fix it or if its even possible to fix.
The core/init.php file has the following code:
<?php
#starting the users session
session_start();
require 'include/database.php';
require 'classes/users.php';
require 'classes/general.php';
$users = new Users($db);
$general = new General();
$errors = array();
?>
error that i am receiving:
PHP Warning: require(include/database.php): failed to open stream: No such file or directory in
Can someone please help me with this?