title: Looping a PHP Script
body: <p>I've got a PHP script that checks a directory and deletes any files not modified within 15 seconds (It's for a game).</p>
  
  <p>My problem is how to get this script to run all the time. I set up a cron job to run every 10 minutes and then in the PHP script I have an infinite loop with a sleep(10). My thought was that it would run the code every 10 seconds, and in the case the script stopped, the cron job would restart it eventually.</p>
  
  <p>However, after the script is started, it runs for about 3 loops (30 secs) and then stops. I've heard PHP only gets so much memory per file load.</p>
  
  <p>How can I make this PHP script loop indefinitely? Maybe there is some way to call itself</p>