this is the error I'm getting:
Warning: simplexml_load_file(http://api.twitter.com/1/statuses/user_timeline/razefm.xml?count=4): failed to open stream: HTTP request failed! HTTP/1.0 410 Gone in /home/tweets.php on line 44
Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://api.twitter.com/1/statuses/user_timeline/razefm.xml?count=4" in /home/tweets.php on line 44
What I have on line 44 is:
$url = "http://api.twitter.com/1/statuses/user_timeline/{$username}.xml?count=4";
$feed = simplexml_load_file($url); <--- Line 44
I know twitter made some recent changes to it's API, but for some reason, I don't know what it is that I'm doing wrong. Any suggestions?
This is what I have on my index:
<?php
$username = "razefm";//your twitter username
$number = 4;//number of tweets
include ("{$dir}/php/tweets.php");
?>