What script runs? The output of remote PHP.
It's just a bunch of "document.write" statements.
i.e. It's really data, not a program.
But we cannot easily "include" remote data in a page.
So that's why we do it that way.
Summary: My page load makes PHP run on feed2js.org.
This fetches current XML feed from Irish Times, parses it, translates it into some nice HTML
so it simply writes the HTML at the point where it is included.
Problems with including remote content
Problem: Column width of unknown feeds.
If (as would be typical) you include the feed in a column on a blog-like page,
you want the feed output to stay within the designated width of that column.
But if the feed contains a word that cannot be broken (e.g. a URL),
this will push out the column width.
Solution with Feed2JS: No descriptions (desc=0) for feeds whose descriptions may contain a URL.
Better solution: Word wrap the data using CSS
See example in a box here.
Problem: Badly-formed feeds.
Remote RSS feeds are sometimes badly-formed, leaving error message in the widget on your site.
(In my experience, this happens a lot.)
Solution: Feed Sanitizer.
Link to "sanitized" version of the feed instead.
[This is now gone. Any alternative?]