inotify的
您没有指定扩展应支持的体系结构.但如果只有Linux是一个选项,你可以使用inotify,其中:
php-inotifytools是另一种可能的扩展.
这是an extensive,self-contained article,显示了inotify如何工作以及如何使用C API.
此外,根据Robert Love的文章:Intro to inotify的结论判断,inotify有一个非常好的表现:
inotify is a simple yet powerful file change notification system with
an intuitive user interface,excellent performance,support for many
different events and numerous features. inotify is currently in use in
varIoUs projects,including Beagle,an advanced desktop indexing
system,and Gamin,a FAM replacement.
Robert Love是一位备受推崇的Linux内核黑客,也是参考书Linux Kernel Development(我碰巧拥有)的作者.