<?php
function getTweets($user) {
$page = file_get_contents("http:// twitter.com/{$user}");
$from = strpos($page, "<ol id='timeline' class='statuses'>");
$to = strpos($page, "</ol>");
$length = $to - $from;
$page =substr($page, $from, $length);
echo $page;
}
getTweets('username');//here put username
?>
No comments:
Post a Comment