Add Twitter feeds to your web site using Simple XML
Wednesday, July 1st, 2009Add Twitter feeds to your web site using Simple XML: see example
//Simply add this section of the code somewhere on top of the page –>//
<?php
function twitter_status($twitter_id, $hyperlinks = true) {
$c = curl_init();
curl_setopt($c, CURLOPT_URL, “http://twitter.com/statuses/user_timeline/$twitter_id.xml”);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($c, CURLOPT_TIMEOUT, 5);
$response = curl_exec($c);
[...]


