Hi,

I've searched and only come across a module that allows for twitter sending sms to your phone at time of sale. With the use of a php parser, I was able to get the last 3 entries of the RSS feed onto a plain html page. Unfortunately, I don't really understand enough about twitter module creation to be able to implement it.

I'm assuming there is some sort of Javascript wrapping that is blocking the php.. or something? At any rate, I either can't echo the $html or push it into the $content variable or maybe the script just isn't running at all...

The code that I'm trying to convert is below. Obviously, for the actual module it was slightly modified to remove tags. Keep in mind that it's for a friend so please ignore the comments


http://www.fridayafterclass.com/rss/twitter_mod.php

Code:
<?php
require_once '/home7/aonecust/public_html/fridayafterclass/rss/rss_php.php';

    $rss = new rss_php;
    $rss->load('http://twitter.com/statuses/user_timeline/18300492.rss');
    $items = $rss->getItems();

  $html = '';


reset($items);
while((list($index, $item) = each($items)) && $i<3) {
        $html .= $item['description'].'<br />
                 <a href="'.$item['link'].'">  '.$item['pubDate'].'</a><br />
                    </p>';
        $i++;
    }

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Friday After Class: Twitter</title>
</head>

<body>
<?php
echo $html;
?>
</body>
</html>