PHP File Alteration Monitor Functions
EditRocket provides the following information on File Alteration Monitor functions in the PHP source code builder.
bool fam_cancel_monitor ( resource $fam , resource $fam_monitor ) - Terminates monitoring on a resource.
void fam_close ( resource $fam ) - Closes a connection to the FAM service.
resource fam_monitor_collection ( resource $fam , string $dirname , int $depth , string $mask ) - Requests monitoring for a collection of files within a directory.
resource fam_monitor_directory ( resource $fam , string $dirname ) - Requests monitoring for a directory and all contained files.
resource fam_monitor_file ( resource $fam , string $filename ) - Requests monitoring for a single file. A FAM event will be generated whenever the file status changes (i.e.
array fam_next_event ( resource $fam ) - Returns the next pending FAM event.
resource fam_open ([ string $appname ] ) - Opens a connection to the FAM service daemon.
int fam_pending ( resource $fam ) - Checks for pending FAM events.
bool fam_resume_monitor ( resource $fam , resource $fam_monitor ) -
bool fam_suspend_monitor ( resource $fam , resource $fam_monitor ) - fam_suspend_monitor() temporarily suspend monitoring of a resource.