CWIS Developer Documentation
RSSClient--Test.php
Go to the documentation of this file.
1 <?PHP
2 #
3 # FILE: SPT--FileName.php
4 #
5 #
6 # Part of the Scout Portal Toolkit
7 # Copyright 2002 Internet Scout Project
8 # http://scout.cs.wisc.edu
9 #
10 
11 #require_once("Archive/Tar.php");
12 require_once("include/SPT--Common.php");
13 PageTitle("");
14 
15 
16 # ----- EXPORTED FUNCTIONS ---------------------------------------------------
17 
18 # ----- LOCAL FUNCTIONS ------------------------------------------------------
19 
20 # ----- MAIN -----------------------------------------------------------------
21 
22 include(FindUIFile("include/SPT--StandardPageStart.html"));
23 include("Scout--RSSClient.php");
24 
25 $Feed = new RSSClient("http://localhost/~ealmasy/scout/SPT/SPT--RSS.php", $DB, 60);
26 $Items = $Feed->GetItems(5);
27 print("\n<br><br><pre>\n\$Items = "); print_r($Items); print("</pre><br><br>\n");
28 
29 $Feed = new RSSClient("http://scout.wisc.edu/Weblog/SWL--RSS.php", $DB, 60);
30 $Items = $Feed->GetItems(5);
31 print("\n<br><br><pre>\n\$Items = "); print_r($Items); print("</pre><br><br>\n");
32 
33 ?>
34 
35 
36 <?PHP
37 
38 include(FindUIFile("include/SPT--StandardPageEnd.html"));
39 
40 ?>
41 
Implements an RSS client for fetching, parsing, and caching RSS feeds.
Definition: RSSClient.php:13