How to get the absolute path of the calling file in a function that's called in PHP?
- by user198729
in file.php:
call()...
How to get absolute path of file.php inside call() ?
Pay attention that call() may be defined in another file.
another.php:
function call(){..}
file.php:
include(path_to_another.php);
call();