Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 3 of 3
$description=preg_match("/<description>(.*?)<\/description>/", $result, $matchtitle);
$ticker="$matchtitle[1]"; $description=preg_match_all("/<description>(.*?)<\/description>/", $result, $matchtitle);
print '<h3>'.substr($matchtitle[0][1],13,-14).'</h3>';
<?php
function getLatestTwitter($username,$password) {
$host = "http://twitter.com/statuses/user_timeline.rss?count=1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_POST, 1);
$result = curl_exec($ch);
curl_close($ch);
$description=preg_match_all("/<description>(.*?)<\/description>/", $result, $matchtitle);
print '<h3>'.substr($matchtitle[0][1],13,-14).'</h3>';
}
getLatestTwitter("3stripe","passwordgoeshere");
?>
1 to 3 of 3