inotify_init(PECL inotify >= 0.1.2) inotify_init — Initialize an inotify instance Описание
resource inotify_init
( void
)
Initialize an inotify instance for use with inotify_add_watch() Возвращаемые значенияA stream resource or FALSE on error. Примеры
Пример #1 Example usage of inotify
<?phpРезультатом выполнения данного примера будет что-то подобное:
array(
array(
'wd' => 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)
),
);
Смотрите также
|
||