Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content">
- [...]<br /><br />
- <font size="5"><b>Hier kommt bald der Inhalt<b></font>
- <?php
- $i = 0;
- while($i <= 2)
- {
- echo $tweets->status{$i}->text.'<br>';
- $i++;
- }
- ?>
- <?php
- if(filectime('twitter.xml') < time() - (60*10)) {
- // download file
- $file = file_get_contents('http://www.twitter.com/status/user_timeline/DManstrator.xml');
- file_put_contents('twitter.xml', $file);
- }
- $tweets = simplexml_load_file('twitter.xml');
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement