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.