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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -