Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7853fe2e035010b6703d77d1878b53f1258eb4ed 1 parent 7d00931
erik authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 basic.php
View
6 basic.php
@@ -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 ?>
Please sign in to comment.
Something went wrong with that request. Please try again.