title: My PHP While(true) automatically stopped in cpanel
body: <p>I have tested this script in my localhost a whole day and it's still working. But in cpanel this script is stopped automatically</p>
  
  <pre><code>    set_time_limit(0);
      ini_set('memory_limit', '-1');
      $run = TRUE;
      $nowtime = date("Y-m-d H:i");
  
      while($run){
          $stop = GetSetting("Stop");
          $time = date("Y-m-d H:i");
          if($stop){
              $run = FALSE; // stopped when setting changed
              continue;
          }
          if($time != $nowtime){
              log_message("debug","Still Running On ".$time); //checking if it still running every minute
          }
          $nowtime = $time;
      }
  </code></pre>
  
  <p>what do you think happened? What is possible cases that made it stop? Is it about memory? or server configuration? or other possibility?</p>