Permalink
Browse files

fixed minor php syntax errors, made the sample url point to the sampl…

…e 'basic' rss feed, and commented-it
  • Loading branch information...
1 parent 7d00931 commit 7853fe2e035010b6703d77d1878b53f1258eb4ed erik committed Nov 15, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 basic.php
View
@@ -7,8 +7,8 @@
* This file assumes a variable named $feedUrl has been defined.
*/
-//config
-$feedUrl = 'http://news.discovery.com/rss/news/';
+//sample url
+$feedUrl = 'http://public.yahoo.com/~jchu/basic_feed_structure.xml';
//parse xml
$feed = simplexml_load_file($feedUrl);
@@ -235,7 +235,7 @@
<a href="<?= $item['link'] ?>" class="title"><?= $item['title'] ?></a>
<div class="description"><?= $item['description'] ?></div>
<a href="<?= $item['category']['domain'] ?>" class="moreLink">More in <?= $item['category']['text'] ?></a>
- <div class="pubDate"><?= $item['pubDate' ?></div>
+ <div class="pubDate"><?= $item['pubDate'] ?></div>
<div style="clear:both"></div>
</li>
<? endforeach ?>

0 comments on commit 7853fe2

Please sign in to comment.