php - Is there any way to echo the path of a included file? -


i want see path of file included in php file, example

include("../resources/templates/front/footer.php"); 

i want see results this:

c:\xampp\htdocs\main\ecom\resources\templates\front 

is there way echo included file , full path?

realpath should trick:

echo realpath("../resources/templates/front/footer.php"); 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -