PHP snippets to interact with Twitter 
PHP snippets to interact with Twitter You can download hotfile torrent – taringa PHP snippets to interact with Twitter free rapidshare megaupload PHP snippets to interact with Twitter download link
Get number of Twitter followers
Have you seen my blog sidebar? I display the number of followers I have in full text. This is actually pretty easy to do. The first thing you need is this function:
function get_followers($ twitter_id){
$ xml=file_get_contents('http://twitter.com/users/show.xml?screen_name='.$ twitter_id);
if (preg_match('/followers_count>(.*)</',$ xml,$ match)!=0) {
$ tw['count'] = $ match[1];
}
return $ tw['count'];
}
Once you have the function, you can call it as shown below:
$ nb = get_followers('phpsnippets');
echo "PHP Snippets already have ".$ nb." followers!";
» Credit: http://www.phpsnippets.info/get-twitters-followers-in-php
Get latest Twitter status
Using PHP and cURL, it is pretty easy to get the status of a specific user. Once you have it, what about displaying it on your blog, like I do in WPRecipes footer?
function get_status($ twitter_id, $ hyperlinks = true) {
$ c = curl_init();
curl_setopt($ c, CURLOPT_URL, "http://twitter.com/statuses/user_timeline/$ twitter_id.xml?count=1");
curl_setopt($ c, CURLOPT_RETURNTRANSFER, 1);
$ src = curl_exec($ c);
curl_close($ c);
preg_match('/<text>(.*)</text>/', $ src, $ m);
$ status = htmlentities($ m[1]);
if( $ hyperlinks ) $ status = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", '<a href="%5C%22%5C%5C0%5C%22">

