The inotify extension allows to use inotify functions in a PHP script.

WWW: http://pecl.php.net/package/inotify
