PHP Code:
function iTweet($msg, $u, $p)
{
$user = $u.':'.$p;
$c =curl_init('http://twitter.com/statuses/update.xml');
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS, 'status='.urlencode($msg));
curl_setopt($c, CURLOPT_USERPWD, $user);
$result = curl_exec($c);
curl_close($c);
return !empty($result) ? true : false;
}
Made by me, enjoy!
EDIT: $msg is your message, $u your username and $p your password obviously