SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2004
    Location
    ms
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy can i search for udpated documents with PHP?

    i m trying to make an application to display all documents(HTML files) links in my top page.

    i would like to put a "NEW" icon beside the link, if the document is updated recently.

    can i do this with PHP ?

    i have no idea at all on how to begin.

    pls advise.

    thanks

  2. #2
    SitePoint Addict
    Join Date
    Mar 2005
    Posts
    273
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmmm i would think of using a mysql database and use php to chk for the updates and display a small new image beside them

  3. #3
    SitePoint Wizard
    Join Date
    Jan 2004
    Location
    3rd rock from the sun
    Posts
    1,005
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am presuming you have html files in /folders/like/this.html

    If you are you able to :

    recursively check through your directory structure (better if you are using PHP5, good OOP tool built in now DirectoryIterator or similarly named)

    You could try this:
    http://uk.php.net/manual/en/function.filemtime.php

  4. #4
    SitePoint Enthusiast
    Join Date
    Jul 2004
    Location
    ms
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks ranjitcool & paulyG

    found that filemtime does it fast & good !


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
  •