1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Looking for a specific function

Discussion in 'PHP' started by pitto, Mar 11, 2009.

  1. #1
    Hi,
    I have a table on a website that reads info from a csv file that is updated monthly. The table also includes a function that echoes the current month to show that the information in the table is up-to-date.

    The problem is that sometimes I'm behind getting the new csv file up but the month rolls ahead anyway. I want to be truthful about these updates so I'm wondering if there's a function in php that can detect when a file has been updated and then echo the date/month that that update was made.

    I've had trouble searching for such a function so far and thought someone here might have an idea.

    Thanks
     
    pitto, Mar 11, 2009 IP
  2. cont911

    cont911 Peon

    Messages:
    50
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    cont911, Mar 11, 2009 IP
  3. adstiger

    adstiger Peon

    Messages:
    409
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    filemtime will detect the modified microtime of the file.
     
    adstiger, Mar 11, 2009 IP