How to know which file is initializing the object?

reeroberson76

New Member
Is it possible to know in which file the object is being initialized? For example, I want to prevent the class from running if it's in X file. I know it defeats the purpose of being re-usable, etc etc. I don't know if it's possible in PHP or possible at all.
 
Back
Top