PHP repeat progress after waking up
<p>I want to repeatedly check a variable every time php wakes up from sleep(). Further, if 3 minutes have passed without finding a particular variable then the function should stop checking. How would I go about this? This is the code I have thus far:</p>

<pre><code>&lt;?php
  $file = file_get_contents("file.txt");
  if($file == 0){
    sleep(3);// then go back to $file
  } else {
    //stuff i want
  }
?&gt;
</code></pre>
