XXXVI. File Alteration Monitor Functions简介FAM monitors files and directories, notifying interested applications of changes. More information about FAM is available at http://oss.sgi.com/projects/fam/. 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.
需求This extension uses the functions of the FAM library, developed by SGI. Therefore you have to download and install the FAM library. 安装
To use PHP's FAM support you must compile PHP 运行时配置本扩展模块在 php.ini 中未定义任何配置选项。 资源类型There are two resource types used in the FAM module. The first one is the connection to the FAM service returned by fam_open(), the second a monitoring resource returned by the fam_monitor_XXX functions. 预定义常量以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。 表 1. FAM event constants
| ||||||||||||||||||||||