By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,723 Members | 1,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,723 IT Pros & Developers. It's quick & easy.

Get time and date of the newsfeed was last published with MagpieRSS

P: n/a
Hi everyone,

I use the MagpieRSS parser to read RSS newsfeeds.
I am able to get the title, url and description.
However, I do not able to get the time or date the
newsfeed was last published. Would anyone give me a hand.
Here is an example of my code:

$query = "SELECT rss.title, rss.url FROM rssfeed AS rss";
$result = mysql_query($query);
$count =0;
while(list($title,$url) = mysql_fetch_row($result)){
$url = "$url";
$rss = fetch_rss( $url );
echo "Site: ", $rss->channel['title'], "<br>\n";
foreach ($rss->items as $item ){
$title = $item[title];
$url = $item[link];
echo "<a href=$url>$title</a></li><br>\n";

$date = parse_w3cdtf( $item['dc']['date'] );
echo 'date: '.$date.'<br>';


The variable $date always returns -1. Please help.
Thanks in advanced.
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.