From my understanding, there are two types of source code (Generated Source code
VS Source Code
per page (as describe in here What is the difference between "Source" and "Generated Source"?).
When I use the PHP Simple HTML DOM Parser (http://simplehtmldom.sourceforge.net/), I notice that I could only get the Source Code
.
How do I get the Generated Source code
?
If it is not possible using the PHP Simple HTML DOM Parser , are there other ways using PHP to get the Generated Source code
? (Optional)
If it is not possible using PHP to get the Gebnerated Source code
, are there other ways using javascript to get it? (Optional)
Updates 1: With reference to the answer made by user Shankar Damodaran
, I need to change my understanding that there are three types of source code as follows:
Actual Source Code (e.g. PHP, ASPX. Usually applies to server-side scripts)
Source Code (The source code before javascript and css is applied)
Generated Source Code (the source code after javascript and css is applied)