development:php:who_included_me

Which PHP page included me?

$fileList = get_included_files();
$topMost = $fileList[0];
if ($topMost == __FILE__) echo 'no parents';
else echo "parent is $topMost";
$caller_tmp=explode("/",__FILE__);$caller=end($caller_tmp);
Enter your comment:
R I N A N
 
  • development/php/who_included_me.txt
  • Last modified: 2019-10-31 09:05
  • (external edit)