Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- // Located in the parent directory
- include_once('../autoloader.php');
- include_once('../idn/idna_convert.class.php');
- $feed = new SimplePie();
- $feed->set_feed_url('http://blog.incerpaz.com/feed/');
- $feed->force_fsockopen(true);
- echo $success = $feed->init();
- $feed->handle_content_type();
- $feed->get_title();
- foreach($feed->get_items() as $item):
- ?>
- <h4>
- <?php if ($item->get_permalink()) echo '<a href="' . $item->get_permalink() . '">'; echo $item->get_title(); if ($item->get_permalink()) echo '</a>'; ?>
- <span class="footnote"><?php echo $item->get_date('j M Y, g:i a'); ?></span></h4>
- <?php echo $item->get_content();
- endforeach;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement