Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Ivan Enderlin @ Hoa
On 15/02/13 14:29, Sebastian Krebs wrote: 2013/2/15 Ivan Enderlin @ Hoa On 15/02/13 14:20, Sebastian Krebs wrote: 2013/2/15 Ivan Enderlin @ Hoa Hi Stas, On 14/02/13 22:37, Stas Malyshev wrote: Hi! A missing feature in PHP is a file system watcher/monitoring available for almos

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Sebastian Krebs
2013/2/15 Ivan Enderlin @ Hoa > On 15/02/13 14:20, Sebastian Krebs wrote: > >> 2013/2/15 Ivan Enderlin @ Hoa >> >> Hi Stas, >>> >>> >>> On 14/02/13 22:37, Stas Malyshev wrote: >>> >>> Hi! A missing feature in PHP is a file system watcher/monitoring available > for almost a

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Ivan Enderlin @ Hoa
On 15/02/13 14:20, Sebastian Krebs wrote: 2013/2/15 Ivan Enderlin @ Hoa Hi Stas, On 14/02/13 22:37, Stas Malyshev wrote: 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

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Ivan Enderlin @ Hoa
On 14/02/13 18:02, Paul Dragoonis wrote: On Thu, Feb 14, 2013 at 5:00 PM, Patrick ALLAERT wrote: 2013/2/14 Ivan Enderlin @ Hoa : I have written: “On Linux, we have inotify (available in PHP through pecl/inotify)”, so yup, I know for inotify :-). I propose to gather all these API and give a pro

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Ivan Enderlin @ Hoa
Hi Victor, On 15/02/13 12:43, Victor Berchet wrote: On 02/14/2013 03:03 PM, Ivan Enderlin @ Hoa wrote: Hi internal, 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

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Victor Berchet
On 02/14/2013 03:03 PM, Ivan Enderlin @ Hoa wrote: Hi internal, 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

Re: [PHP-DEV] File system watcher/monitoring

2013-02-15 Thread Pierre Joye
hi Sanford, On Fri, Feb 15, 2013 at 8:35 AM, Sanford Whiteman wrote: >> There are native APIs for that (read: non .net, aka C) on Windows > > Well aware of that. The EXE does use the Win32 API, not a .NET > wrapper. I've used that API ever since it's been documented. Right, but these APIs can an

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Sanford Whiteman
P.S. This was the very extension I was referring to when I posted to Internals sometime last year about developing extensions, latest books, etc.. It'd been a longtime fantasy of mine because I use PHP for a lot of sysadmin-type tasks on Windows servers -- DB import/export, nightly HTTP and FTP tr

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Sanford Whiteman
> There are native APIs for that (read: non .net, aka C) on Windows Well aware of that. The EXE does use the Win32 API, not a .NET wrapper. I've used that API ever since it's been documented. > using an external process for this purpose would be horrible, in all > possible ways. Well, yeah, tha

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Pierre Joye
hi, On Thu, Feb 14, 2013 at 10:47 PM, Sanford Whiteman wrote: >> 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

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Sanford Whiteman
> 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

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Stas Malyshev
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

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Paul Dragoonis
On Thu, Feb 14, 2013 at 5:00 PM, Patrick ALLAERT wrote: > 2013/2/14 Ivan Enderlin @ Hoa : > > I have written: “On Linux, we have inotify (available in PHP through > > pecl/inotify)”, so yup, I know for inotify :-). I propose to gather all > > these API and give a proper one to the end-user. > > If

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Patrick ALLAERT
2013/2/14 Ivan Enderlin @ Hoa : > I have written: “On Linux, we have inotify (available in PHP through > pecl/inotify)”, so yup, I know for inotify :-). I propose to gather all > these API and give a proper one to the end-user. If you are doing so, I would suggest you to create this as a C library

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Thomas Hruska
On 2/14/2013 7:18 AM, Mike Ho wrote: Just a quick note, FileSystemWatcher in .NET is actually not recommended for use by Microsoft. It does not guarantee that an event will be raised on every new file or file mod in a given folder… and it's even less determinstic when trying to deal with netw

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Ivan Enderlin @ Hoa
Hi Sebastian, On 14/02/13 15:40, Sebastian Krebs wrote: 2013/2/14 Ivan Enderlin @ Hoa Hello Julien, On 14/02/13 15:29, Julien Pauli wrote: On Thu, Feb 14, 2013 at 3:03 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: Hi internal, A missing feature in PHP is a file syst

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Sebastian Krebs
2013/2/14 Ivan Enderlin @ Hoa > Hello Julien, > > > On 14/02/13 15:29, Julien Pauli wrote: > >> On Thu, Feb 14, 2013 at 3:03 PM, Ivan Enderlin @ Hoa < >> ivan.ender...@hoa-project.net> wrote: >> >> Hi internal, >>> >>> A missing feature in PHP is a file system watcher/monitoring available >>> fo

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Ivan Enderlin @ Hoa
Hello Julien, On 14/02/13 15:29, Julien Pauli wrote: On Thu, Feb 14, 2013 at 3:03 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: Hi internal, A missing feature in PHP is a file system watcher/monitoring available for almost all platforms. On Linux, we have inotify (available

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Ivan Enderlin @ Hoa
Hi Mike, On 14/02/13 15:18, Mike Ho wrote: Just a quick note, FileSystemWatcher in .NET is actually not recommended for use by Microsoft. It does not guarantee that an event will be raised on every new file or file mod in a given folder… and it's even less determinstic when trying to deal wit

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Julien Pauli
On Thu, Feb 14, 2013 at 3:03 PM, Ivan Enderlin @ Hoa < ivan.ender...@hoa-project.net> wrote: > Hi internal, > > 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 ha

Re: [PHP-DEV] File system watcher/monitoring

2013-02-14 Thread Mike Ho
Just a quick note, FileSystemWatcher in .NET is actually not recommended for use by Microsoft. It does not guarantee that an event will be raised on every new file or file mod in a given folder… and it's even less determinstic when trying to deal with network share drives. Microsoft's own deve