Finding which page required/included this file

I’ve tried searches galore, and gone through obvious functions on

But I can’t find any way of determining the ‘parent’ file where an include/require was used to make this file I am working on run.

My problem is actually I can’t find which file is including my file, so putting a var before each include and printing that won’t help (until I find the rogue include statement).

Is there a function that performs this?


Have you seen [fphp]debug_print_backtrace/fphp and [fphp]get_included_files/fphp ?

nope, thanks! I was looking on the same pages as include/require :slight_smile:

Google just shows how to include/require when you search anything which has those two words in… it’s bloody useless.