Because of the Twitter API 1.0 retirement as of June 11th 2013, the script below does not work anymore.
// Create curl resource $ch = curl_init(); // Set u
You'll need a to create an "app" on Twitter (and you need a Twitter account to do this).
Then, you need to use OAuth to make an authorized request to Twitter.
You can use the GET statuses/user_timeline resource to get a list of recent tweets.