PHP 5.2.x, monitor a file for changes, native FAM?
<p>I'm looking for a FAM-like solution:</p>

<blockquote>
  <p><a href="http://www.php.net/manual/en/fam.installation.php" rel="nofollow">http://www.php.net/manual/en/fam.installation.php</a></p>
  
  <p>"This extension is considered unmaintained and dead."</p>
</blockquote>

<p>I have a file that's written to randomly, I want to loop and wait for it to change, and then kick off my process.</p>

<p>I don't want to loop fstat sleep if at all possible, fam_next_event blocked until updates and spoiled me. Since FAM isn't in PHP >= 5.0.5 and I don't really want to rely on something that's no longer maintained, I'm hoping someone has done something similar. </p>

<p>Is there a FAM replacement? Something better/native?</p>
