/* ----------------------------------------------------- | This file takes an array containing information | | from an RSS feed and converts it to XHTML+SMIL. | | The array provided should be formatted as | | documented in the rssToArray.php file. | | | | Note that all of the other functions in this | | directory are prerequisties and should be included| | at the start of this page | |___________________________________________________| | This function is (c) Dominic Smith, 2005 | | Enquiries to dom@domsmith.co.uk | | Released under the General Public Licence (GPL) | | See: http://www.gnu.org/licenses/gpl.txt | ----------------------------------------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $rss_array = rssToArray("http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml"); $headlineKW = getHeadlineKWs($rss_array); for ($i=1; $i<=(count($rss_array)-1); $i++) { $rss_array[$i][4] = bbcLinkLocation($rss_array[$i][2]); echo "\n"; echo "\n
"; echo "\n

" . $rss_array[$i][4][0] . "

"; echo "\n

" . $rss_array[$i][0] . "

"; echo "\n

" . $rss_array[$i][1] . "

"; echo "\nRead More

"; echo "\n

Search
Google News
for more information.

"; echo "\n

Updated: " . $rss_array[$i][3] . "

"; echo "\n
"; }