//include_once('includes/my_include_file.php');

//Get the name of the file calling this include
$calling_file = end(explode('/', $_SERVER['PHP_SELF']));

switch ($calling_file)
{
 	case 'some_file.php':

Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *