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
Post a Comment