Is there anyway for this PHP script to know what are the scripts or directories that are currently loaded? I am talking about my scripts, not specific module
The reason I ask this is because, due to the layers and layers of includes ( now don't get me started on what include or include_once is bad), and due to autoloading, it's kind of difficult to see which PHP scripts can be called because they have been loaded, or which can't be called.
So it would be good if I can just var_dump a list of directories or PHP scripts that are already loaded.