Is it possible to have a function automatically contain the line number and the file that the function was CALLED in,
as if i call __LINE__ or __F
__LINE__
__F
The only way would be using debug_backtrace(), but as the name says: it is for debugging. Your code should not attach any meaning or functionality in production based on where/when it's called.