I was wondering if PHP had the ability to look at source code <body> of a website, load it into a variable, detect a certain tag within the code, truncate everything before it (and after a separate tag) and run the code.
i realize that i might have to write a page that applies this 'snatched' code to itself, and then i would use an <iframe> to display the generated page.
as a bonus icing on the cake, i was wondering if there was a way to display this generated page (or even the code itself!) within a <div>.
Practical use for the "<body>snatcher" script:
1) i like to read webcomics, and most of the pages they are displayed on are written in php. i would like to have all my webcomics show up on a single page all at once saving me just a little bit of time reading them all.
2) i have a professional blog, a personal blog, a myspace and a facebook, and a flickr account. needless to say, that's a lot of comments to be checking. i would like to have a page that displays all the latest comments of each of my accounts on one page.
if anyone has any idea on how i would write a "<body>snatcher" script, or deeper insight on how php would do this, please post advice! i'm sure others can think up more applications than those two i mentioned.