why is stat() dir mtime left unchanged using php mkdir?

Discussion in 'PHP' started by drj0nson, Dec 21, 2009.

  1. #1
    I want to be able to check if a (Solaris) dir has been modified using php.

    I thought I could check if a file or subdir has been added/removed/modified in a directory by using php stat(<mydir>) but it seems mtime is unaffected using php mkdir to create a subdir. It is changed if mkdir is used on the command line and also if a subdir is removed using php rmdir.
     
    drj0nson, Dec 21, 2009 IP