SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Guru
    Join Date
    Sep 2003
    Location
    Northern California
    Posts
    605
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A script to check for Last-Modified dates

    Instead of remembering to visit the same page on 10 different websites to see if it has changed in any way (ie the content), can I write a CRON that will go to each of those pages on each of those sites and compare it's last-modifed date with the one I have? ...and if it's newer then, I know to visit the page.

    None of the pages have RSS feeds.

    I can code PHP but wouldn't know where to start on this project.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,153
    Mentioned
    190 Post(s)
    Tagged
    2 Thread(s)

    last modified

    The PHP documentation for filemtime() has a few user contributed examples that use the HTTP last-modified header. You could do something with them using a CRON to check database values and mail() you.

  3. #3
    SitePoint Guru
    Join Date
    Sep 2003
    Location
    Northern California
    Posts
    605
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fantastic...thanks!

  4. #4
    SitePoint Addict Robert_2006's Avatar
    Join Date
    Jun 2006
    Location
    Tarpon Springs Fl.
    Posts
    265
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    open the page and count the characters inside perhaps?
    Last edited by Robert_2006; Dec 25, 2007 at 17:59. Reason: spelling


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •