Inotify 소개
inotify 확장은 inotify 함수 inotify_init(), inotify_add_watch() 및 inotify_rm_watch()를 노출합니다.
C inotify_init() 함수가 파일 디스크립터를 반환함에 따라 PHP의 inotify_init()는 스트림 리소스를 반환하며, stream_select(), stream_set_blocking() 및 fclose()와 같은 표준 스트림 함수와 함께 사용할 수 있습니다. inotify_read()는 inotify 이벤트를 읽는 C 방식을 대체합니다.