O'Reilly NetworkO'Reilly.com
BooksAll ArticlesSafari BookshelfO'Reilly GearFree NewslettersSearch
RSS DevCenter Tech Jobs | Forum

O'Reilly Network RSS DevCenter


Web Design and Development
Getting Started

Lightweight Portals with Meerkat
Pages: 1, 2, 3, 4

Advanced(ish) programmatic fun(ctionality)

Those of you with a modicum of programming know-how can easily build more advanced functionality. We'll use a little PHP to pull all of our site into only one page with links between our Home, Python, Perl, and PHP views. And we'll add bit of HTML to spice things up.


 <link rel="stylesheet" type="text/css" href="./phperlthon.css" />

<body bgcolor="#000000" text="#000000" link="#990066" vlink="#006699">

<table border="0" cellpadding="20" cellspacing="4" width="100%">

 <tr valign="top">

  <td bgcolor="#999999">
      <p>   </p>
   <h3><em><a href="./phperlthon.php?m=212">Home</em></h3>
   <h3><em><a href="./phperlthon.php?title=Perl&p=1064">Perl</em></h3p>
   <h3><em><a href="./phperlthon.php?title=PHP&p=4791">PHP</em></h3>
   <h3><em><a href="./phperlthon.php?title=Python&p=17">Python</em></h3>

  <td bgcolor="#ffffff">
  <img src="./phperlthon.gif" width="403" height="75" border="0" alt="PHPerlthon" />
  <h3> <? echo $title ? $title . ' News..' : '   ' ?> </h3>

    if ($m) echo "m=$m";
    elseif ($p) echo "p=$p";
    else echo "m=212";





(Note: The long URL line was broken up for presentation purposes.)

Give phperlthon.php a whirl. The links pass appropriate arguments back to the PHP page itself, which in turn passes the appropriate switches on to Meerkat on the URL-line. This sort of tomfoolery could just as easily have been accomplished with Server-Side Includes (SSI), CGI scripting, and the like. Hopefully this simple demo provides you with programmatic inspiration on new ways to use Meerkat in your coding.

The end

I hope this article inspires you to use Meerkat in interesting and novel ways. Be sure to drop us a line in the O'Reilly Network RSS Forum and let us know. And, if you're so inclined, spread the Meerkat word with a nifty "Meerkat Powered!" button. To do so, simply copy-and-paste the following HTML into your document:

<a href="http://meerkat.oreillynet.com">


The following is a list of starting points from which to explore further some of the topics covered (or not) in this article.

Rael Dornfest is Founder and CEO of Portland, Oregon-based Values of n. Rael leads the Values of n charge with passion, unearthly creativity, and a repertoire of puns and jokes — some of which are actually good. Prior to founding Values of n, he was O'Reilly's Chief Technical Officer, program chair for the O'Reilly Emerging Technology Conference (which he continues to chair), series editor of the bestselling Hacks book series, and instigator of O'Reilly's Rough Cuts early access program. He built Meerkat, the first web-based feed aggregator, was champion and co-author of the RSS 1.0 specification, and has written and contributed to six O'Reilly books. Rael's programmatic pride and joy is the nimble, open source blogging application Blosxom, the principles of which you'll find in the Values of n philosophy and embodied in Stikkit: Little yellow notes that think.

Discuss this article in the O'Reilly Network RSS Forum.

Return to the RSS DevCenter.

Sponsored by:

Get Red Hat training and certification.

Contact UsMedia KitPrivacy PolicyPress NewsJobs @ O'Reilly
Copyright © 2000-2006 O’Reilly Media, Inc. All Rights Reserved.
All trademarks and registered trademarks appearing on the O'Reilly Network are the property of their respective owners.
For problems or assistance with this site, email