downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fam_monitor_directory> <fam_close
[edit] Last updated: Fri, 25 May 2012

view this page in

fam_monitor_collection

(PHP 5 <= 5.0.5)

fam_monitor_collection指定したディレクトリにあるファイルの変更を監視する

説明

resource fam_monitor_collection ( resource $fam , string $dirname , int $depth , string $mask )

ディレクトリ内のファイルの監視を要求します。

ファイルの状態が変化したときに FAM イベントが発生します。 発生しうるイベントコードの詳細は、このセクションの 定数 の欄にあります。

パラメータ

fam

fam_open() が返す、 FAM サービスへの接続を表すリソース。

dirname

ファイルを監視するディレクトリへのパス。

depth

このディレクトリから最大 depth 階層まで掘り下げたディレクトリが検索対象となります。

mask

シェルパターン mask により、検索するファイル名を制限します。

返り値

モニタリングリソース、あるいはエラー時に FALSE を返します。

参考



add a note add a note User Contributed Notes fam_monitor_collection
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites