title: Is there a pcntl_exec for web page
body: <p>I wrote a lengthy php program, that spits out useful information, and at the end a signal showing it was a success or not. 
  After displaying that, the program should restart with the next parameter. </p>
  
  <p>Currently I add the next part within a loop. This, however, causes sooner or later a <code>PHP Fatal error: Allowed memory size .. exhausted.</code></p>
  
  <p>A loop takes 5 seconds and if it is success it takes 4 seconds more.
  There are now possible 370 iterations for loops.</p>
  
  <p>I found </p>
  
  <blockquote>
    <p>pcntl_exec — Executes specified program in current process space</p>
  </blockquote>
  
  <p>However, that is only for the command line php execution.</p>
  
  <p>Is there something I can do on a web site?</p>