title: Having a PHP script loop forever doing computing jobs from a queue system
body: <p>Currently I have a perl script that runs forever on my server, checking a SQS for data to compute. This script has been running for about 6 months with no problems what so ever.</p>
  
  <p>So, now I want to switch over to PHP'S CLI, and have the script loop there forever. Mostly because I'm more familiar with PHP.</p>
  
  <p>Basicly,</p>
  
  <pre><code>$i="forever";
  while($i==="forever"){
      doSomething();
      sleep(10);
  }
  </code></pre>
  
  <p>The script will do a shell_exec("/shell_script.sh"); that can take up to 2 hours to process. Will this trigger a max execution time or similar? </p>
  
  <p>Is this "ok" to do? If not, what is the alternatives? </p>