Recently I had a problem where I was trying to figure out how to monitor a site for new content or changes in current content. The problem was the site didn’t have an RSS or Atom feed or anything similar to monitor it automatically via a simple PHP script or similar method so I had to come up with this method to monitor a site for changes.
As I sat and thought about it I realized there were couple ways to achieve this level of monitoring I was looking for. One method I came up with was to grab the entire contents of the page and cache it in a text file then periodically grab the page and compare the data to the cached version. This solution although it would work just fine was a little more trouble and effort than I wanted
.
Read more…