Posting to Twitter Using the load() Function for PHP
Due to the super simple API that's provided by twitter, its very easy to post to Twitter. And thats made even simpler by using the load() function. As simple as this...
$status = urlencode("Your new Twitter status goes here...");
$username = "binnyva";
$password = "not_going_to_tell_you";
$twitter_response = load("http://$username:$password@twitter.com/statuses/update.json?status=$status", array('method'=>'post'));
// Returns JSON data - if you want to do anything with it.
This what I used to create the BSE Sensex twitter bot.