How to get the absolute path of the calling file in a function that's called in PHP?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-13T11:34:25Z Indexed on 2010/03/13 11:55 UTC
Read the original article Hit count: 223

Filed under:
|

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();

© Stack Overflow or respective owner

Related posts about php

Related posts about path