timeline( '0qezlhfsjrt5F9KC0XDkazR8U', 'GGHdrQnDD0nmcVlb5dPOoWyYhE9uYiKY8H2538jyRFL4pupCIy', '2665297129-Tqc3uJPjgmAH8SSqoXiPPZ5b2V0Y4iOUYwRJGa7', '6qtSwOTbPgn8j87xkvPlDFunJ8BlyCXcHfyYBWq7KwLkm'); if ( file_exists ( 'lastid.txt' ) ) $T->setSinceId( file_get_contents( 'lastid.txt' ) ); $new_tweets = $T->getYourTimeLine (); if ( ! isset ( $new_tweets['errors'] ) ) if ( count ( $new_tweets ) > 0 ) { while ( count ( $new_tweets ) > 0 ) array_unshift ( $tweets, array_pop ( $new_tweets ) ); if ( count ( $tweets ) > 100 ) $tweets = array_slice ( $tweets, 0, 100); file_put_contents ( 'tweets.txt', JSON_encode ( $tweets ) ); file_put_contents ( 'lastid.txt', $tweets[0]['id_str'] ); file_put_contents ( 'lastcall.txt', date('Ymd H:i:s') ); } ?>