inotify_initinotify インスタンスを初期化する 説明
resourcefalse inotify_init()
inotify_add_watch で使用するための inotify インスタンスを初期化します。 パラメータこの関数にはパラメータはありません。 戻り値
ストリームリソース、あるいはエラー時に 例
例1 inotify の使用例 上の例の出力は、 たとえば以下のようになります。
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)
),
);
参考
|