Articles & Code Snippets


Twitter SMS alerts

Twitter SMS alerts


Use this simple PHP script to send direct messages or to receive alerts (SMS, email) through Twitter:


<?php
$result = shell_exec('curl -u TWITTER_USER_SENDER:TWITTER_PASSWORD -d "text=Testing a remote direct message via CURL&user=TWITTER_USER_RECEIVER" http://twitter.com/direct_messages/new.xml');
?>


web


Archives