Re: File system watcher/monitoring

From: Date: Thu, 14 Feb 2013 21:37:40 +0000
Subject: Re: File system watcher/monitoring
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-65848@lists.php.net to get a copy of this message
Hi! > A missing feature in PHP is a file system watcher/monitoring available > for almost all platforms. On Linux, we have inotify (available in PHP > through pecl/inotify), on Mac OS X, we have /dev/fsevents (not available > in PHP, since we need ioctl to do that in pure PHP —and sudo—, no C > extension needed), on FreeBSD, we have FAM, and on Windows, we have > FileSystemWatcher in .NET. All major platforms have a solution ready to use. I think it'd be great to have a library with unified interface and an extension that uses it. However, I'm not sure if these libraries are useful in common php use case - short-lived requests. Could I get the changes since the last request? Or is it useful only for long-running persistent processes? > Is it possible to have such a feature landing in PHP (core if karma > allows it)? or do you want such a feature? I'm not sure why it has to be in core though. I don't see so far anything that requires modifying language core. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#65848) next »