ok, I looked at those logs. I saw "unexpected : at line 5"
on line five, I have a : for the http
://www.wacomalt.com/news/feed.xml
here is the total code of that index.php EDIT:
now this is the code for index.htm I still get the same eroor on the messages though, so same problem still.
<?php
require($_SERVER['DOCUMENT_ROOT'] . '/php/simplepie.inc');
$feed = new SimplePie();
$feed->feed_url(’http://www.wacomalt.com/feed.xml’);
$feed->cache_location($_SERVER[’DOCUMENT_ROOT’] . ‘/cache’);
$feed->init();
$feed->handle_content_type();
?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>My Feed Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><font face="arial" color="red" size="24px">As you can see, I am in the process of fixing some things...<p> The forums are still fine though. <a href="http://www.wacomalt.com/phpBB2/">CLICK HERE TO VISIT THE FORUMS</a></font>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br><?php if ($feed->data) { ?>
<!– Get the title of the whole feed and link it back to the website –>
<h1>
<a href=”<?php echo $feed->get_feed_link(); ?>“>
<?php echo $feed->get_feed_title(); ?>
</a>
</h1>
<!–
Loop through each news item in the feed, and limit the quantity to
either 5, or as many items as are in the feed — whichever is less.
–>
<?php
$max = $feed->get_item_quantity(5);
for ($x = 0; $x < $max; $x++) {
$item = $feed->get_item($x);
?>
<!– Get the title of the news item and link it back to the original post –>
<h2>
<a href=”<?php echo $item->get_permalink(); ?>“>
<?php echo $item->get_title(); ?>
</a>
</h2>
<!– Get the date that it was posted –>
<p><?php echo $item->get_date(’j M Y’); ?></p>
<!– Show the news posting –>
<p><?php echo $item->get_description(); ?></p>
<!– Add links to add this post to one of a handful of services. –>
<p>
<a href=”<?php echo $item->add_to_delicious(); ?>“>Del.icio.us</a> |
<a href=”<?php echo $item->add_to_digg(); ?>“>Digg this!</a> |
<a href=”<?php echo $item->add_to_newsvine(); ?>“>Newsvine</a>
</p>
<!– Stop looping through each item once we’ve gone through all of them. –>
<?php } ?>
<!– From here on, we’re no longer using data from the feed. –>
<?php } ?>
</body>
</html>
I also wonder if my primary ibay is able to execute dynamic content? and why is this not modifiable through server-manager?
EDIT: I now changed the file to index.htm rather than index.php, now it shows up, but
as you can see, there are still problems, and why did this exact same page not show up when named index.
php?