XXVII. File Alteration Monitor Functions

介绍

FAM monitors files and directories, notifying interested applications of changes.

A PHP script may specify a list of files for FAM to monitor using the functions provided by this extension.

The FAM process is started when the first connection from any application to it is opened. It exits after all connections to it have been closed.

注: 该扩展模块不适用于 Windows 平台!

需求

This extension requires ... version ... as available on ...

安装

运行时配置

该扩展模块未定义任何设置指令。

资源类型

FAM resource

预定义常量

由于这些常量是由该扩展模块定义的,因此只有在该扩展模块被编译到 PHP 中,或者在运行时被动态加载后,这些常量才有效。

表格 1. FAM constants

Constantmeaning
FAMChanged (integer) The status of
FAMDeleted (integer)  
FAMStartExecuting (integer)  
FAMStopExecuting (integer)  
FAMCreated (integer)  
FAMMoved (integer)  
FAMAcknowledge (integer)  
FAMExists (integer)  
FAMEndExist (integer)  

目录
fam_cancel_monitor -- Terminate monitoring
fam_close -- Close FAM connection
fam_monitor_collection -- Monitor a collection of files in a directory for changes
fam_monitor_directory -- Monitor a directory for changes
fam_monitor_file -- Monitor a regular file for changes
fam_next_event -- ...
fam_open -- Open connection to FAM daemon
fam_pending -- Check for pending FAM events
fam_resume_monitor -- Resume suspended monitoring
fam_suspend_monitor -- Temporarily suspend monitoring

虎的笑话 虎的成语 虎的歇后语