hi, this is shan and i need help in php
recently i was working on a php parser that would fetch information from my blog but it isn't working as i planned and i need to helt the progress of my site that i'm going to publish the first problem with the main file would be this error:
and the code is as follws in my hello.php file and they are as follow:
<ul id="widget">
<?php include('include.php');?>
<?php foreach($feed->get_items('0, 4') as $item) ?>
<li>
<?php echo $item->get_description(); ?>
<h4><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h4>
<p>
<?php echo $item->get_date(); ?>
</p>
</li>
<?php endforeach ; ?>
</ul>
</div><!--end container-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.newsScroll.js"></script>
<script type="text/javascript">
$('#widget').newsScroll({
speed: 2000,
delay: 5000
});
// or just call it like:
// $('#widget').newsScroll();
</script> </div>
</div>
the include.php file is as follows:
<?php
require 'simplepie.inc';
$feed = new SimplePie('http://cooldesigner.info/blog/?feed=rss2');
$feed->handle_content_type();
?>
please help me as soon as u get this thing solved.
MOD EDIT:
. . .
BBCode tags added.