Reputation: 44842
Does anyone know of a web development toll which will tell me what physical php files are being pulled together to form the page?
Example.
I have index.php
which is made up of header.php
sidebar.php
news.php
and footer.php
. Is there a tool available that'll inform me that index.php
is formed by these pages when I access it?
Upvotes: 1
Views: 71
Reputation: 4075
You can use get_included_files
function for this purpose.
For more info,
http://php.net/manual/en/function.get-included-files.php
Upvotes: 0
Reputation: 41050
Add get_included_files()
into the last PHP line of your footer.php:
var_dump(get_included_files());
Upvotes: 2