Is there a way to detect changes in a folder using php on both windows and linux?
问题 I'm looking for a solution to detect changes in folder(s) using php . The application may run on both platforms( linux and windows ). I may use different methods for each platform as long as results are the same. What I desire is : If a file/folder is added to a directory, I want my app to detect this new file and read its attributes ( size,filetime etc) If a existing file/folder is saved/contents changed/deleted, I need to detect this file is changed It would be better if I can monitor a