Intro/inotify-Phpdoc专题
Inotify 扩展提供了一系列 inotify 函数: <span class="function">inotify_init、 <span class="function">inotify_add_watch 、 <span class="function">inotify_rm_watch。
类似 C 语言里的 inotify_init 函数会返回文件描述符,PHP 的 <span class="function">inotify_init则返回 stream 资源。可以被标准的 Steam 函数使用,例如 stream_select、 stream_set_blocking 以及 <span class="function">fclose。 <span class="function">inotify_read 函数取代里 C 语言里读取 inotify 事件的那种方式。