Re: File system watcher/monitoring

From: Date: Fri, 15 Feb 2013 07:35:06 +0000
Subject: Re: File system watcher/monitoring
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-65855@lists.php.net to get a copy of this message
> 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, that's my very point... having the engine/extension do this is the proper direction (I only use this hack to check completion of some scheduled tasks, it's all private). Stas says typical PHP apps don't have a need for file system hooks. Sure, long-polling may not be good with thread-per-process webservers, but those aren't the only PHP environments in the wild. Once you accept that people already roll out long-polling back ends with PHP, the next step is to minimize the check-sleep-loop hackery and offer true event-driven alternatives when possible. Nothing I'm saying is controversial. -- Sandy

« previous php.internals (#65855) next »