inotify_init
Initialize an inotify instance
&reftitle.description;
resourceinotify_init
Initialize an inotify instance for use with
inotify_add_watch
&reftitle.returnvalues;
A stream resource or &false; on error.
&reftitle.examples;
Example usage of inotify
0, inotify_read() will not block
// Stop watching __FILE__ for metadata changes
inotify_rm_watch($fd, $watch_descriptor);
// Close the inotify instance
// This may have closed all watches if this was not already done
fclose($fd);
?>
]]>
&example.outputs.similar;
1, // Equals $watch_descriptor
'mask' => 4, // IN_ATTRIB bit is set
'cookie' => 0, // unique id to connect related events (e.g.
// IN_MOVE_FROM and IN_MOVE_TO events)
'name' => '', // the name of a file (e.g. if we monitored changes
// in a directory)
),
);
]]>
&reftitle.seealso;
inotify_add_watch
inotify_rm_watch
inotify_queue_len
inotify_read
fclose