<?php
function getTweets($user) {
    $page = file_get_contents("http://
    $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