I have a PHP file that requires another, but I'm concerned by security issues, so I ask you:
Is there a way to check wich file is checking the other?
For an example:
file1.php
<?php
require ('file2.php');
?>
file2.php
<?php
if (! ... ) //check
{
die('Invalid requirer!');
}
?>
TIA,