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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -