My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

Very simple PHP extension for inotify-tools which provides a simple interface to inotify.

<?php
inotifytools_initialize();
$wd = inotifytools_watch_recursively('/tmp', IN_MOVE | IN_CLOSE_WRITE);
while (1){
while ($ev = inotifytools_next_event(1)) { 
  echo $ev['name']."\n"; // other field in $ev: mask wd cookie
}
sleep(1);//try write sth in /tmp dir
}
?>
Powered by Google Project Hosting