read tweets php
<p>I have a small problem with my tweets script. But for some reason, I don't know what the error could be. This is the error it gives me: </p>

<pre><code>$url    = "http://www.twitter.com/statuses/user_timeline/{$username}.xml?count={$number}";
$tweets = file_get_contents($url);
$feed   = new SimpleXMLElement($tweets);

function time_stamp($date){
if (empty($date)){
    return "No date provided";
}
</code></pre>

<p>and on the index.php page, it'll show this code:</p>

<pre><code>&lt;?php
          $username = "user";//your twitter username
          $number = 3;//number of tweets
          include ("{$dir}/php/tweets.php");
          ?&gt;
</code></pre>

<p>Do you guys know what it is that I'm doing wrong? </p>
