homepage Welcome to WebmasterWorld Guest from 54.226.10.234
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

This 46 message thread spans 2 pages: 46 ( [1] 2 > >     
Short guide to include RSS on your website
using PHP to create html, readable by search engines
rincey

10+ Year Member



 
Msg#: 465 posted 11:25 am on Jan 24, 2006 (gmt 0)

Including RSS feeds in to your own pages is pretty simple with PHP and some open source libraries. The follwing lines show how to create HTML from RSS feeds using the popular PHP tools magpierss (fetches and parses the RSS feed) and Smarty (template engine).

It may look like overkill to use such powerful tools for such a simple task. But once installed, both give a variety of functions and reduce the self-written code to a few lines.

Here we go:

A. Preparing the Webhost/Server

A current version of PHP is necessary. The following tutorial assumes that all files are placed in the folder /rssdemo on your web host.

1. Install magpierss RSS tool
I am not sure if I am allowed to add URLs here, so just google for "magpierss" and take the first result. Follow the DOWNLOAD link and download the recent version of magpierss (0.72 as I write this).

The file comes as .tar.gz format, so if you are on a Windows PC, you will need additional software to unzip this. I think WinZip does the job, you can also use the free tool "7-zip". The first "Extract" will make a .tar-file out of the .tar.gz, the second extraction should create a folder named magpierss-0.72.

2. Install Smarty template engine
Google for "smarty" and follow the link to php.net. Download the the recent version of Smarty (2.6.12 as I write this).

The file also comes as .tar.gz format, after extraction there should be a folder named Smarty-2.6.12.

3. Rename folders and move them to /rssdemo
Whereever you extracted both folders, now it is time to move them. First delete the version numbers out of the folder names. Change magpierss-0.72 to magpierss and Smarty-2.6.12 to Smarty. Move both folders into the /rssdemo folder on your local test server or upload them to your web server.

4. Smarty needs some special folders.
Please create the following folders in the /rssdemo folder:
- cache
- configs
- templates
- templates_c
The last one, templates_c, needs to have write permission for Smarty. If your webhost is on Unix, set the permissions as needed (777 in the worst case, depends on server config).

B. A few lines of PHP for parsing and displaying the feed.

Now, with all the installation work done, we only need a few more lines of code for our task. Place the follwing code in a file named feed.php in the /rssdemo folder.

------------------

<?
/* The folder where this file is located. Change to whatever you need */
$mydir = "/rssdemo";

/* Include magpierss and Smarty library */
require_once($_SERVER["DOCUMENT_ROOT"].$mydir."/Smarty/libs/Smarty.class.php");
require_once($_SERVER["DOCUMENT_ROOT"].$mydir."/magpierss/rss_fetch.inc");

/* Create a template object for further use */
$tpl = new Smarty();

/* Set folders for Smarty object. This folders have to exist on your web server (Check A.3) */
$tpl->template_dir = $_SERVER["DOCUMENT_ROOT"].$mydir.'/templates/';
$tpl->compile_dir = $_SERVER["DOCUMENT_ROOT"].$mydir.'/templates_c/';
$tpl->config_dir = $_SERVER["DOCUMENT_ROOT"].$mydir.'/configs/';
$tpl->cache_dir = $_SERVER["DOCUMENT_ROOT"].$mydir.'/cache/';

/* The URL of the feed we want to include */
$url = "http://rss.news.yahoo.com/rss/world";

/* magpierss does all the work! */
$rss = fetch_rss($url);

/* Uncomment the following line to see the object and array data returned. Good to see which other information has been processed by magpierss */
// echo "<pre>"; print_r($rss); echo "</pre>";

/* If the RSS could be parsed, add it to the template */
if ($rss) {
/* Sends the feed title to the template engine */
$tpl->assign("feedtitle",$rss->channel["title"]);
/* Sends the RSS items as an array */
$tpl->assign("items",$rss->items);
}
else {
/* RSS problem? */
$tpl->assign("feedtitle","Problem with: $url");
}

/* Fill the template file itemlist.html with the information and return it */
$feedhtml = $tpl->fetch($_SERVER["DOCUMENT_ROOT"].$mydir."/templates/itemlist.html");
/* Do with $feedhtml whatever you want */
echo $feedhtml;
?>


------------------

C. We need a template!

Smarty is a very powerful template engine which makes creating tables and lists a snap. For this demo we need a simple template that prints the name of the feed in the title and lists the items.

Copy the following lines into a file named "itemlist.html" and save it in the /rssdemo/templates folder.

------------------

{* very simple template for a table with RSS items *}
<table>
{* Show the feed title as a header in the first row of the table *}
<tr><th style="font-size: 24px; border: 1px solid black;">{$feedtitle}</th></tr>
{* loop through all items and add date, link, title and description in the follwing section *}
{section name=x loop=$items}
<tr><td class="rssitem" style="border: 1px solid red;">
<strong>{$items[x].pubdate}: <a href="{$items[x].link}" target="_blank">{$items[x].title}</a></strong><br>
{$items[x].description}
</td></tr>
{/section}
</table>
{* That's it. Table can be formatted using some CSS classes *}


------------------

D. Putting it all together

Now browse to the URL /rssdemo/feed.php on your web server. The feed should be displayed with some red lines around each item.

E. Serious usage

Usually you want to include the feed output somewhere into your page. The simplest way is the name your pages .php instead of .html and add the follwing line where the feed html should be displayed.

<? include "rssdemo/feed.php"?>

e.g. like this

<table>
<tr>
<td width="80%">Left column with some information</td>
<td>Right column contains the feed<br /> <? include "rssdemo/feed.php"?></td>
</tr>
</table>

If you can't or don't want to rename your existing files, you could force your webserver to parse even .html-files for PHP code. If you use Apache, you could add the "AddType application/x-httpd-php .php .html" to your .htaccess. But this is another story.

I am sure I forgot some important things, so please feel free to ask. I installed both libraries and scripted and tested the PHP and template code as I wrote this on my local development server, so everything should work as expected.

 

SuzyUK

WebmasterWorld Senior Member suzyuk us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 465 posted 2:16 pm on Jan 25, 2006 (gmt 0)

Great Post Rincey, thanks for your time in putting it together.

I'm a PHP newbie so have flagged it for further reading later

Thanks Again
Suzy

qcgrant

5+ Year Member



 
Msg#: 465 posted 12:24 am on Feb 4, 2006 (gmt 0)

I tried the above, but it did not work.
What am looking for is a program which allow users to add the own feeds in the form of ads.
After they have added the feeds, it would appear on one page as
ex.
Colour seeks.............
1. white seeks ............
2. black seeks ..........

and so on

I need everything to be done automatically via my web server.

rincey

10+ Year Member



 
Msg#: 465 posted 6:29 am on Feb 4, 2006 (gmt 0)

What did not work? Any error messages? Did you create the folder structure exactly as described?

What you are looking for is a method for other website owners do include your RSS feed on ther websites. There are numerous RSS-to-Javascript/IFrame converters out there. Just try a google search.

capty

5+ Year Member



 
Msg#: 465 posted 12:06 am on Feb 17, 2006 (gmt 0)

okay,
now i tried doing this and am having trouble....


{* very simple template for a table with RSS items *}
<table>
{* Show the feed title as a header in the first row of the table *}
<tr><th style="font-size: 24px; border: 1px solid black;">{$feedtitle}</th></tr>
{* loop through all items and add date, link, title and description in the follwing section *}
{section name=x loop=$items}
<tr><td class="rssitem" style="border: 1px solid red;">
<strong>{$items[x].pubdate}: <a href="{$items[x].link}" target="_blank">{$items[x].title}</a></strong><br>
{$items[x].description}
</td></tr>
{/section}
</table>
{* That's it. Table can be formatted using some CSS classes *}

this is what the rssdemo/feed.php
gave me
its all the template junk
any idea?

Lobo

5+ Year Member



 
Msg#: 465 posted 1:44 am on Feb 17, 2006 (gmt 0)

ok first attempt got this error..

Warning: MagpieRSS: Failed to fetch [rss.news.yahoo.com...] (HTTP Error: connection failed (11) in /home/<snip>/public_html/rssdemo/magpierss/rss_fetch.inc on line 238
Problem with: [rss.news.yahoo.com...]

Lobo

5+ Year Member



 
Msg#: 465 posted 11:29 am on Feb 17, 2006 (gmt 0)

I think the problem is with my host server firewall ... I have requested that [rss.news.yahoo.com...] is allowed ..

waiting for a reply...

rincey

10+ Year Member



 
Msg#: 465 posted 12:46 pm on Feb 17, 2006 (gmt 0)

@capty

its all the template junk
any idea?

Now this is quite strange. If you uncomment line 26 of the script you get a dump of the RSS feed? So it works till this line.

Looks like a Smarty problem which is strange as Smarty throws up error messages usually. Look into the /templates_c-folder. Is there a file with a strange (random looking) filename in it? Does Smarty have write access to this folder?

Try adding

error_reporting(E_ALL);

as first line of feed.php to get some additional error messages.

capty

5+ Year Member



 
Msg#: 465 posted 10:38 pm on Feb 17, 2006 (gmt 0)

Warning: main(/usr/local/etc/apache/htdocs/airsite/new/rssdemo/Smarty/libs/Smarty.class.php): failed to open stream: No such file or directory in /usr/local/etc/apache/htdocs/tlee/tlee/rssdemo/feed.php on line 7

Fatal error: main(): Failed opening required '/usr/local/etc/apache/htdocs/airsite/new/rssdemo/Smarty/libs/Smarty.class.php' (include_path='.:/php/includes:/usr/local/lib/php:/usr/local/lib/php/extensions/no-debug-non-zts-20020429:/usr/local/etc/php:/usr/local/lib') in /usr/local/etc/apache/htdocs/tlee/tlee/rssdemo/feed.php on line 7

thats my new error message.
the old one seems to have disappeared.

[edited by: engine at 3:20 pm (utc) on Feb. 23, 2006]

rincey

10+ Year Member



 
Msg#: 465 posted 9:47 am on Feb 20, 2006 (gmt 0)



Warning: main(/usr/local/etc/apache/htdocs/airsite/new/rssdemo/Smarty/libs/Smarty.class.php): failed to open stream: No such file or directory in /usr/local/etc/apache/htdocs/tlee/tlee/rssdemo/feed.php on line 7

The two paths in the error message are different. At first the Smarty class is searched for in ...htdocs/airsite/new/..., but the feed.php itself resieds in ...htdocs/tlee/tlee/...

You checked that all paths are correct?

tntpower

10+ Year Member



 
Msg#: 465 posted 6:13 am on Feb 21, 2006 (gmt 0)

Great post, Rincey!

One question, if I want to display the image (from [nasa.gov...] , how shall I do? (I know little about XML. What a shame! )

tntpower

10+ Year Member



 
Msg#: 465 posted 6:55 am on Feb 21, 2006 (gmt 0)

A follow up:

I figure out how to do what I want (aforementioned):

1. Add $tpl->assign("image",$rss->image); to the feed.php
2. Add {$image.url} to where it should be (in the template)

tntpower

10+ Year Member



 
Msg#: 465 posted 7:17 am on Feb 21, 2006 (gmt 0)

Can I display more then one rss feed? (one feed.php with many templates, one template for each rss feed)

Thanks

zenegra2

5+ Year Member



 
Msg#: 465 posted 2:47 pm on Feb 21, 2006 (gmt 0)

Another interesting option for managing a collection of RSS feeds is the free service from Bloglines. This is a completely web-based RSS aggregator. Once you have created a blogline account, you can access and edit your collection from any web browser.
<snip>

[edited by: werty at 4:39 pm (utc) on Feb. 21, 2006]
[edit reason] Removed URL - Please See TOS #13 [/edit]

tntpower

10+ Year Member



 
Msg#: 465 posted 8:47 pm on Feb 21, 2006 (gmt 0)

A problem. I followed rincey's guide and I successfully include RSS on my website. However, it does not update. I just checked, it is still yesterday's content :( Any help?

tntpower

10+ Year Member



 
Msg#: 465 posted 3:14 am on Feb 22, 2006 (gmt 0)

Clarify: it updates now.

Lobo

5+ Year Member



 
Msg#: 465 posted 6:18 pm on Mar 2, 2006 (gmt 0)

Is it possible to install the rss feed in to a table...?

I have a 3 column set up and would like the news feed ( headlines only) to be displayed in the middle column, has anyone got experience of this using Smarty

Any advice welcome :)

Lowkei

5+ Year Member



 
Msg#: 465 posted 6:38 am on Mar 24, 2006 (gmt 0)

rincey,

Millions thanks to your quality post!
I've successfully built the RSS feed:)

With appliciation,
Lowkei

surfin2u

10+ Year Member



 
Msg#: 465 posted 4:08 pm on Mar 24, 2006 (gmt 0)

rincey,

Millions thanks to your quality post!
I've successfully built the RSS feed:)

With appliciation,
Lowkei

Ditto for me! I can't believe how easy and painless this was. I think I spent all of about 10 minutes downloading and installing and it works perfectly!

Thanks!

Starbuck

5+ Year Member



 
Msg#: 465 posted 8:46 pm on Apr 12, 2006 (gmt 0)

The problem is I can't find these with a zip extension. Winzip or Win Rar will not open the or uncompress them. Does anyone know where I could find these utils in a zip file?

rincey

10+ Year Member



 
Msg#: 465 posted 10:07 am on Apr 13, 2006 (gmt 0)

I use the free tool 7-zip to uncompress the .tar.gz files. Just google for "7-zip".

surfin2u

10+ Year Member



 
Msg#: 465 posted 2:33 pm on Apr 13, 2006 (gmt 0)

My old winzip from 1998 had no trouble unzipping the archive. Maybe the newer versions have omitted tar and gz support.

Starbuck

5+ Year Member



 
Msg#: 465 posted 3:01 pm on Apr 14, 2006 (gmt 0)

Well i installed it all but when I run the page with the insert script on it, I get the following on the screen.

No input file specified.

What does that mean? I have the files as shown on my server.

Starbuck

5+ Year Member



 
Msg#: 465 posted 10:04 pm on Apr 14, 2006 (gmt 0)

anyone have any ideas?

rincey

10+ Year Member



 
Msg#: 465 posted 4:15 pm on Apr 15, 2006 (gmt 0)

Which URL do you call? What HTML does this URL contain? What is the exact error message you get? I can't recognize your error as something typical.

Starbuck

5+ Year Member



 
Msg#: 465 posted 8:36 pm on Apr 15, 2006 (gmt 0)

Well I have tried several, I tried the Yahoo one in the example & I tried this one.

[rollingstone.com...]

I have also tried these. Doesn't matter, they all yield the same result. Not sure why, all the code looks right.

[rollingstone.com...]
[rollingstone.com...]
[rollingstone.com...]
[rollingstone.com...]
[rollingstone.com...]

[edited by: werty at 8:59 pm (utc) on April 15, 2006]
[edit reason] Removed some URLs [/edit]

Starbuck

5+ Year Member



 
Msg#: 465 posted 6:02 pm on Apr 17, 2006 (gmt 0)

Any input?

rincey

10+ Year Member



 
Msg#: 465 posted 8:20 am on Apr 18, 2006 (gmt 0)

Is your (development?) web server allowed to send outbound requests? Perhaps there is some firewall problem?

Try to run the following PHP script in the directory where feed.php resides:


<?
/* The folder where this file is located. Change to whatever you need */
$mydir = "/rssdemo";

/* Include magpierss and Smarty library */
require_once($_SERVER["DOCUMENT_ROOT"].$mydir."/magpierss/rss_fetch.inc");

/* The URL of the feed we want to include */
$url = "http://rss.news.yahoo.com/rss/world";

/* magpierss does all the work! */
$rss = fetch_rss($url);

echo "<pre>"; print_r($rss); echo "</pre>";
?>

Do you get any usable output?

Starbuck

5+ Year Member



 
Msg#: 465 posted 2:49 pm on Apr 18, 2006 (gmt 0)

Here is the Error I got.

mydir=RSS

Warning: main(D:\\wwwRoot\\**********.com/rss/magpierss/rss_fetch.inc): failed to open stream: No such file or directory in D:\wwwRoot\**********\member\rss\testscript.php on line 6

Fatal error: main(): Failed opening required 'D:\\wwwRoot\\**********.com/rss/magpierss/rss_fetch.inc' (include_path='.;c:\php4\pear') in D:\wwwRoot\**********.com\member\rss\testscript.php on line 6

On a different test page using the original script, I get the following.

Left column with some information Right column contains the feed

But there is nothing displayed with any of the SS links shown above.

Starbuck

5+ Year Member



 
Msg#: 465 posted 4:33 pm on Apr 18, 2006 (gmt 0)

I did some more smessing with it & now I get something that looks like this. It looks like feeds, but is really messed up. on the other page it is still the left column right colum & that is all that is displayed.

magpierss Object
(
[parser] => 0
[current_item] => Array
(
)

[items] => Array
(
[0] => Array
(
[title] => Iran: Aggressor's Hand Will Be 'Cut Off'
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/iran_army_day
[pubdate] => Tue, 18 Apr 2006 15:25:13 GMT
[description] =>

Accompanied by Iran's armed forces commanders, President Mahmoud Ahmadinejad, center, reviews army weapons, during a parade ceremony commemorating Army Day in front of the mausoleum of the late revolutionary founder Ayatollah Khomeini just outside Tehran, Iran, Tuesday, April 18, 2006. Ahmadinejad warned on Tuesday Iran would 'cut the hand of any aggressor' and insisted the country's military had to be ready with the most modern technology. (AP Photo/Vahid Salemi)AP - President Mahmoud Ahmadinejad warned that Iran would "cut off the hand of any aggressor" and insisted Tuesday the country's military must be prepared amid escalating tensions with the international community over its disputed nuclear program.

[media] => Array
(
[text] =>

photo

[credit] => (AP)
)

[summary] =>

Accompanied by Iran's armed forces commanders, President Mahmoud Ahmadinejad, center, reviews army weapons, during a parade ceremony commemorating Army Day in front of the mausoleum of the late revolutionary founder Ayatollah Khomeini just outside Tehran, Iran, Tuesday, April 18, 2006. Ahmadinejad warned on Tuesday Iran would 'cut the hand of any aggressor' and insisted the country's military had to be ready with the most modern technology. (AP Photo/Vahid Salemi)AP - President Mahmoud Ahmadinejad warned that Iran would "cut off the hand of any aggressor" and insisted Tuesday the country's military must be prepared amid escalating tensions with the international community over its disputed nuclear program.

[date_timestamp] => 1145373913
)

[1] => Array
(
[title] => Israel Considers Options After Bombing
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/israel_palestinians
[pubdate] => Tue, 18 Apr 2006 15:49:25 GMT
[description] =>

Irena Shaulov, mother of David Shaulov, reacts as she holds the stomach of her 9-month-pregnant daughter-in-law Radmila during David's funeral in the town of Holon, near Tel Aviv, Tuesday April 18, 2006. David Shaulov was killed Monday in a suicide bomb attack outside a packed Tel Aviv fast food restaurant that killed nine civilians and wounded dozens during the Jewish Passover holiday. The 21-year-old bomber, a West Bank university dropout, was sent by the Iranian-backed Islamic Jihad group.(AP Photo/Baz Ratner)AP - Israel's leaders held the Hamas-led Palestinian Authority responsible for the deadliest suicide bombing in 20 months but stopped short Tuesday of branding it an "enemy entity" or ordering a large-scale military operation.

[media] => Array
(
[text] =>

photo

[credit] => (AP)
)

[summary] =>

Irena Shaulov, mother of David Shaulov, reacts as she holds the stomach of her 9-month-pregnant daughter-in-law Radmila during David's funeral in the town of Holon, near Tel Aviv, Tuesday April 18, 2006. David Shaulov was killed Monday in a suicide bomb attack outside a packed Tel Aviv fast food restaurant that killed nine civilians and wounded dozens during the Jewish Passover holiday. The 21-year-old bomber, a West Bank university dropout, was sent by the Iranian-backed Islamic Jihad group.(AP Photo/Baz Ratner)AP - Israel's leaders held the Hamas-led Palestinian Authority responsible for the deadliest suicide bombing in 20 months but stopped short Tuesday of branding it an "enemy entity" or ordering a large-scale military operation.

[date_timestamp] => 1145375365
)

[2] => Array
(
[title] => Teen Held in Aruba to Appear Before Judge
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/aruba_missing_teen
[pubdate] => Tue, 18 Apr 2006 15:26:54 GMT
[description] =>

This is undated family photo released by Marcia Twitty shows Natalee Holloway of Mountain Brook, Ala. Holloway has been missing since May 30, when she vanished in Aruba while on a trip with classmates celebrating their high school graduation. Authorities made an arrest in the case, an Aruban official said Saturday, April 15, 2006. (AP Photo/Family photo, File)AP - Aruban authorities appeared to be taking a new tack in the disappearance of U.S. teenager Natalee Holloway as they prepared to ask a judge to continue holding a 19-year-old who lawyers said has never before figured in the case.

[media] => Array
(
[text] =>

photo

[credit] => (AP)
)

[summary] =>

This is undated family photo released by Marcia Twitty shows Natalee Holloway of Mountain Brook, Ala. Holloway has been missing since May 30, when she vanished in Aruba while on a trip with classmates celebrating their high school graduation. Authorities made an arrest in the case, an Aruban official said Saturday, April 15, 2006. (AP Photo/Family photo, File)AP - Aruban authorities appeared to be taking a new tack in the disappearance of U.S. teenager Natalee Holloway as they prepared to ask a judge to continue holding a 19-year-old who lawyers said has never before figured in the case.

[date_timestamp] => 1145374014
)

[3] => Array
(
[title] => Danube Flooding Forces Residents to Flee
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/balkans_floods
[pubdate] => Tue, 18 Apr 2006 15:48:40 GMT
[description] =>

A Romanian villager carries a lamb on his back, next to the river Danube, in Bistret, 300 kilometers (186 miles) west of Bucharest, Tuesday April 18, 2006. Thousands of residents have been evacuated from two Danube villages in western Romania and thousands more are under threat as the river hit near-record levels in Romania and Bulgaria Tuesday. (AP Photo/Vadim Ghirda)AP - Thousands of residents have been evacuated from two Danube villages in western Romania and thousands more are under threat as the river hit near-record levels in Romania and Bulgaria Tuesday.

[media] => Array
(
[text] =>

photo

[credit] => (AP)
)

[summary] =>

A Romanian villager carries a lamb on his back, next to the river Danube, in Bistret, 300 kilometers (186 miles) west of Bucharest, Tuesday April 18, 2006. Thousands of residents have been evacuated from two Danube villages in western Romania and thousands more are under threat as the river hit near-record levels in Romania and Bulgaria Tuesday. (AP Photo/Vadim Ghirda)AP - Thousands of residents have been evacuated from two Danube villages in western Romania and thousands more are under threat as the river hit near-record levels in Romania and Bulgaria Tuesday.

[date_timestamp] => 1145375320
)

[4] => Array
(
[title] => China Using Artificial Rain to Clear Dust
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/china_dust_storm
[pubdate] => Tue, 18 Apr 2006 15:44:19 GMT
[description] =>

In this photo distributed by China's Xinhua news agency, a woman makes her way in gale and sandstorm with her head wrapped with scarf in downtown Beijing on Tuesday April 18, 2006. Beijing was preparing Tuesday to use artificial rain-making to clear the air after a choking dust storm coated China's capital in yellow grit, prompting a health warning to keep children indoors. The storms are expected to last through at least Wednesday in Beijing, neighboring Tianjin and a swath of north China stretching from Jilin province in the northeast through Inner Mongolia to Xinjiang in the desert northwest. (AP Photo/Xinhua, Guo Lei))AP - Beijing will use artificial rainmaking to clear the air after a choking dust storm coated China's capital and beyond with yellow grit, prompting a health warning to keep children indoors, state media said Tuesday.

[media] => Array
(
[text] =>

photo

[credit] => (AP)
)

[summary] =>

In this photo distributed by China's Xinhua news agency, a woman makes her way in gale and sandstorm with her head wrapped with scarf in downtown Beijing on Tuesday April 18, 2006. Beijing was preparing Tuesday to use artificial rain-making to clear the air after a choking dust storm coated China's capital in yellow grit, prompting a health warning to keep children indoors. The storms are expected to last through at least Wednesday in Beijing, neighboring Tianjin and a swath of north China stretching from Jilin province in the northeast through Inner Mongolia to Xinjiang in the desert northwest. (AP Photo/Xinhua, Guo Lei))AP - Beijing will use artificial rainmaking to clear the air after a choking dust storm coated China's capital and beyond with yellow grit, prompting a health warning to keep children indoors, state media said Tuesday.

[date_timestamp] => 1145375059
)

[5] => Array
(
[title] => Peugeot to Close Britain Plant, Cut Jobs
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/france_peugeot
[pubdate] => Tue, 18 Apr 2006 16:01:32 GMT
[description] => AP - French automaker PSA Peugeot Citroen SA announced Tuesday it would cut 2,300 jobs in Britain as it phases out production of the 206 subcompact car at its Ryton plant near Coventry.
[summary] => AP - French automaker PSA Peugeot Citroen SA announced Tuesday it would cut 2,300 jobs in Britain as it phases out production of the 206 subcompact car at its Ryton plant near Coventry.
[date_timestamp] => 1145376092
)

[6] => Array
(
[title] => Saudis Arrest 5 for Attack on Oil Facility
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/saudi_terror_arrests
[pubdate] => Tue, 18 Apr 2006 16:04:32 GMT
[description] => AP - Saudi authorities arrested five suspected terrorists linked to February's deadly attack on the world's largest oil processing facility, a security official said Tuesday.
[summary] => AP - Saudi authorities arrested five suspected terrorists linked to February's deadly attack on the world's largest oil processing facility, a security official said Tuesday.
[date_timestamp] => 1145376272
)

[7] => Array
(
[title] => 3 Survive 650-Foot Bus Plunge in Mexico
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/mexico_bus_plunge
[pubdate] => Tue, 18 Apr 2006 14:01:47 GMT
[description] =>

An image of the Virgin of Guadalupe sits among the 57 coffins holding those killed in a bus crash in Maltrata, Mexico, Monday, April 17, 2006. At least 57 people were killed Monday when a bus returning from a religious festival veered off a mountain road and crashed. (AP Photo/Gregory Bull)AP - An overcrowded bus speeding home from a religious festival veered off a highway emergency ramp and crashed through a metal barrier, plunging more than 650 feet into a ravine. Fifty-seven people were killed, including a 13-year-old boy.

[media] => Array
(
[text] =>

photo

[credit] => (AP)
)

[summary] =>

An image of the Virgin of Guadalupe sits among the 57 coffins holding those killed in a bus crash in Maltrata, Mexico, Monday, April 17, 2006. At least 57 people were killed Monday when a bus returning from a religious festival veered off a mountain road and crashed. (AP Photo/Gregory Bull)AP - An overcrowded bus speeding home from a religious festival veered off a highway emergency ramp and crashed through a metal barrier, plunging more than 650 feet into a ravine. Fifty-seven people were killed, including a 13-year-old boy.

[date_timestamp] => 1145368907
)

[8] => Array
(
[title] => Mugabe warns opponents against "playing with fire"
(Reuters)

[link] => [us.rd.yahoo.com...]
[guid] => nm/20060418/zimbabwe_dc
[pubdate] => Tue, 18 Apr 2006 14:52:57 GMT
[description] =>

Zimbabwe President Robert Mugabe during the country's 26th independence celebrations in the capital Harare, April 18, 2006. (Stringer/Reuters)Reuters - Zimbabwean President Robert Mugabe vowed on Tuesday to crack down mercilessly on opponents he said were trying to topple him through violent protests.

[media] => Array
(
[text] =>

photo

[credit] => (Reuters)
)

[summary] =>

Zimbabwe President Robert Mugabe during the country's 26th independence celebrations in the capital Harare, April 18, 2006. (Stringer/Reuters)Reuters - Zimbabwean President Robert Mugabe vowed on Tuesday to crack down mercilessly on opponents he said were trying to topple him through violent protests.

[date_timestamp] => 1145371977
)

[9] => Array
(
[title] => Chinese Man Pays $20 Million for Vase
(AP)

[link] => [us.rd.yahoo.com...]
[guid] => ap/20060418/china_expensive_vase
[pubdate] => Tue, 18 Apr 2006 15:51:14 GMT
[description] => AP - A Chinese entrepreneur paid $20 million at an auction for an eighth century white porcelain vase, a new record for antiquities in China, state television and the auction house said Tuesday.
[summary] => AP - A Chinese entrepreneur paid $20 million at an auction for an eighth century white porcelain vase, a new record for antiquities in China, state television and the auction house said Tuesday.
[date_timestamp] => 1145375474
)

[10] => Array
(
[title] => No apology for Indonesia over Papuans, says Australian PM
(AFP)

[link] => [us.rd.yahoo.com...]
[guid] => afp/20060418/australiaindonesiapapuadiplomacy
[pubdate] => Tue, 18 Apr 2006 06:17:58 GMT
[description] =>

Australia will not apologise to Indonesia for granting temporary asylum to 42 people including several independence activists from the troubled province of Papua, Prime Minister John Howard, pictured here, said.(AFP/Torsten Blackwood)AFP - Australia will not apologise to Indonesia for granting temporary asylum to 42 people including several independence activists from the troubled province of Papua, Prime Minister John Howard said.

[media] => Array
(
[text] =>

photo

[credit] => (AFP)
)

[summary] =>

Australia will not apologise to Indonesia for granting temporary asylum to 42 people including several independence activists from the troubled province of Papua, Prime Minister John Howard, pictured here, said.(AFP/Torsten Blackwood)AFP - Australia will not apologise to Indonesia for granting temporary asylum to 42 people including several independence activists from the troubled province of Papua, Prime Minister John Howard said.

[date_timestamp] => 1145341078
)

)

[channel] => Array
(
[title] => Yahoo! News: World News
[copyright] => Copyright (c) 2006 Yahoo! Inc. All rights reserved.
[link] => [news.yahoo.com...]
[description] => World News
[language] => en-us
[lastbuilddate] => Tue, 18 Apr 2006 16:04:32 GMT
[ttl] => 5
[tagline] => World News
)

[textinput] => Array
(
)

[image] => Array
(
[title] => Yahoo! News
[width] => 142
[height] => 18
[link] => [news.yahoo.com...]
[url] => [us.i1.yimg.com...]
)

[feed_type] => RSS
[feed_version] => 2.0
[encoding] => ISO-8859-1
[_source_encoding] =>
[ERROR] =>
[WARNING] =>
[_CONTENT_CONSTRUCTS] => Array
(
[0] => content
[1] => summary
[2] => info
[3] => title
[4] => tagline
[5] => copyright
)

[_KNOWN_ENCODINGS] => Array
(
[0] => UTF-8
[1] => US-ASCII
[2] => ISO-8859-1
)

[stack] => Array
(
)

[inchannel] =>
[initem] =>
[incontent] =>
[intextinput] =>
[inimage] =>
[current_namespace] =>
[source_encoding] => ISO-8859-1
[from_cache] => 1
)

This 46 message thread spans 2 pages: 46 ( [1] 2 > >
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved