How to locate .php code and file on the server when inspecting elements from an internet browser?

Arthur Mamou-Mani picture Arthur Mamou-Mani · Aug 25, 2011 · Viewed 25k times · Source

When I inspect an element of my webpage using Firebug, I cannot identify which .php code it using and on which php file I can find this code on from the server. Is there any other way to locate pieces of php codes from a browser?

Many thanks,

Arthur

Answer

Gustav picture Gustav · Aug 25, 2011

You could edit the source code to make print out. Maybe a HTML comment such as:<!-- Start of index.php -->

I actively work to hide what PHP-file is used to generate any specific HTML-output as it makes out a serious security threat.