Is there any elegant way to check if a file was included by using include/include_once/require/require_once or if the pag
include
include_once
require
require_once
you can do this by get_included_files — Returns an array with the names of included or required files and validate against __FILE__
__FILE__