473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
0 1727

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bathroom_Monkey | last post by:
For posterity's sake, here is an algorithm I created to take a GMT time and convert it to U.S. central time, accounting for daylight saving time. Note: this algorithm can be modified to work for...
0
by: blupp | last post by:
Hi, I am trying to install the package, but get the following error: cpan> install Date::Manip Running install for module Date::Manip Running make for S/SB/SBECK/DateManip-5.42a.tar.gz LWP...
22
by: John Salerno | last post by:
hi all. are there any recommendations for an intro book to python that is up-to-date for the latest version? would reading a book from a year or two ago cause me to miss much? thanks!
10
by: soup_or_power | last post by:
Hi I have a requirement to compare the user entry for mm/dd/yy/HH/mm (month, day, year, hour, minute) to the Easter Standard Time. I am using the following script, but it is not giving the right...
1
by: newbie | last post by:
Greetings, I would like to add a date/time function to a program. I would like to be able to do something like this: total=age*365+(current date as per users system clock) See below for the...
3
by: Vjay77 | last post by:
As a result from who is I am getting this: > > NOTICE AND TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of high-volume, automated, electronic...
1
by: adsmarty | last post by:
Help me ! Hosting is with PHP 5.2
2
by: Angus | last post by:
There are the C runtime library functions of course, but are there any STL time or date related functions? I couldn't find any.
1
by: nigelesquire | last post by:
I am in need of your assistance. I have a page with multiple unixtime stamps and I need to display them in readable time and date with the user's time zone. Below is the code. <!DOCTYPE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.