• PHP Video Tutorials

PHP - Inotify read() Function



inotify_read() function can read events from an inotify instance.

Syntax

array inotify_read( resource $inotify_instance )

An array of inotify events or false if no events were pending, and inotify_instance is non-blocking. Each event is an array with the following keys −

  • wd is a watch descriptor returned by inotify_add_watch() function

  • mask is a bit mask of events

  • cookie is a unique id to connect related events (eg IN_MOVE_FROM and IN_MOVE_TO)

  • name is the name of a file (for instance, if a file was modified in a watched directory)

php_function_reference.htm
Advertisements