• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Feeds in the Wild > 9.3. Rolling Your Own: LinkPimp PubSub

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 XHTML—you can leave the onscreen formatting to a stylesheet—but the subroutine that does this is quite obvious in the code and can be turned to do something else: send IM notifications, for example.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint