I am writing a simple PHP script to watch a folder and its subfolders for any changes (new files, modifications, deletions) and then perform an action.
I will run this script from the commandline on windows using php -f script.php
.
I have been search for a way to watch folders on windows that has PHP bindings. Something like inotify or gamin for windows would be nice.
The answers to this question mentions FindFirstChangeNotification
, but I couldn't find any PHP bindings for it.
Are there any libraries/software for folder/filesystem watching on windows with PHP bindings?