|All requests||>||Extract last modified date of a websi...||>||Request new recommendation||>||Featured requests||>||No recommendations|
by praveen kumar - 6 years ago (2014-11-04)
I am trying to get last modified date of a website so that updated information of the website could be stored in the database.
1. by Manuel Lemos - 6 years ago (2014-11-04) Reply
A Web site may have many pages. It may be too hard to know the last modified date of all pages without crawling all pages.
Do you want to check just the last modified date of pages in a RSS feed?
RSS is a bit old but many sites still use it to list the main content.
This class supports parsing RSS 2 feeds in three ways: using SimpleXML, Expat XML functions and regular expressions.
It returns arrays of items that you can process to find the item that has the most recent last updated date.