forked from tommyku/rssGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.php
18 lines (16 loc) · 927 Bytes
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
include_once("rssGenerator.php");
$rss = new RssGenerator("Liftoff News","http://liftoff.msfc.nasa.gov/","Liftoff to Space Exploration.",strtotime("Tue, 10 Jun 2003 04:00:00 GMT"),strtotime("Tue, 10 Jun 2003 09:41:01 GMT"),array(
"docs" => "http://blogs.law.harvard.edu/tech/rss",
"generator" => "Weblog Editor 2.0",
"managingEditor" => "editor@example.com",
"webMaster" => "webmaster@example.com"
));
$rss->addItem(array(
"title" => "Star City",
"link" => "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
"description" => "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\">Star City</a>.",
"pubDate" => "Tue, 03 Jun 2003 09:39:21 GMT",
"guid" => "http://liftoff.msfc.nasa.gov/2003/06/03.html#item573"
));
$rss->publish();