Open dynamiccookies opened 2 years ago
Decided on slight change to process.
In Calling File:
$include = true;
require_once 'admin/config.php';
$include = true;
require_once 'files/functions.php';
In Called File:
if (!isset($include)) {
header('HTTP/1.0 403 Forbidden');
exit;
} else {unset($include);}
Set defined variable before including file Check for defined variable in included file, and return permission denied error if does not exist Unset defined variable after including file
Example Code
In Calling File:
In Called File: