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
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.
Look at the address bar of the browser. Firebug inspect works for the current browser page and it doesn't know what PHP is - it's just HTML content, regardless of the script running on the server that generated the content.
If this doesn't help, elaborate your question.
If this were possible it would make php less secure, a part of the security is the obscurity, if you could simple find out which file does what it would be much easer to launch a targeted attack.
精彩评论