9.3. Rolling Your Own: LinkPimp PubSub
Having said all that, and given that there are currently no implementations of mod_changedpage to receive pages from, let's concentrate on working with cloud. What's more, every cloud implementation in the wild uses XML-RPC, so, for simplicity, this is all we will support here. Extending the script to support SOAP and HTTP-POST would not be hard, if necessary, but it probably won't be necessary.
The following Publish and Subscribe (PubSub) system is for web sites displaying various feeds, rendered into XHTML and inserted onto the page using a server-side include. It is currently working live on the test site: http://www.benhammersley.com/linkpimp.
This system also incorporates two other things we have already discussed. First, it renders the feed into XHTMLyou can leave the onscreen formatting to a stylesheetbut the subroutine that does this is quite obvious in the code and can be turned to do something else: send IM notifications, for example.
Second, it uses Syndic8's API and subscription list service to tell it which feeds to examine. This allows you not only to play with the Syndic8 system, but also to add or remove feeds from the site without touching its code. I can merely log on to Syndic8 and subscribe to a feed there, and it should be incorporated into the site within the hour. It is rough and ready, but you will undoubtedly get ideas of your own from it.
The system comes in two parts:
Running the system creates three files internal to its working: