![]() | XXXVI. File Alteration Monitor FunctionsIntroduzioneFAM 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.
RequisitiThis extension uses the functions of the FAM library, developed by SGI. Therefore you have to download and install the FAM library. InstallazioneTo use PHP's FAM support you must compile PHP --with-fam[=DIR] where DIR is the location of the directory containing the lib and include directories. Configurazione di RuntimeQuesta estensione non definisce alcuna direttiva di configurazione in php.ini Tipi di risorseThere 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. Costanti predefiniteQueste costanti sono definite da questa estensione e sono disponibili solo se l'estensione è stata compilata nel PHP o se è stata caricata dinamicamente a runtime. Tabella 1. FAM event constants
| ![]() | ||||||||||||||||||||