Thursday, July 14, 2011

Funky terminals

Answering Nicu's meme about more fun terminal windows - this one is mine :











This is a ubuntu server that is using the getquote.php script to update the motd.
---
require_once 'rss_php.php';

        $rss = new rss_php;
        $rss->load('http://www.quotedb.com/quote/quote.php?action=random_quote_rss');
        $rssitems = $rss->getItems();

        if ($rssitems) {
                // print_r($rssitems);
                echo $rssitems[0]['description'].' :: '.$rssitems[0]['title']."\n";
        }
?>;

And the rss_php.v1.zip.

Later edit after Nicu's comment :



2 comments: