Hello guys! This is my first post and hopefully you can help me!
I am trying to embed my blog into my website and the following code works below on a tempory server but when i run it on my paid server is get this error
Warning: Invalid argument supplied for foreach() in
Can anybody please help me.
<?php
$rss = new lastRSS;
$rss->cache_dir = "_includes/rsscache/";
$rss->cache_time = 7200;
$rssout = $rss->get("http://myaccount.blogspot.com/feeds/posts/default?alt=rss");
foreach($rssout['items'] as $item){
$time = strtotime($item['pubDate']);
?>
<h3><?php echo $item['title'];?></h3>
<div>
<?php echo html_entity_decode($item['description']);?></div>
<h6><?php echo date("jS F Y",$time);?></h6>
<?php
}
?>
<?php
Many thanks in advance..