title: long running php script hangs
body: <p>I have this set in my php script to make it supposedly run as long as it needs to to parse and do mysql queries and fetch images for over 100,000 rows.</p>
  
  <pre><code>ignore_user_abort(true);
  set_time_limit(0);
  #begin logging output
  error_reporting(E_ALL);
  ini_set('memory_limit', '512M');
  </code></pre>
  
  <p>I run the command like this in shell:</p>
  
  <pre><code>nohup php myscript.php &gt; output.txt
  </code></pre>
  
  <p>after running about 8 to 10 hours this script will still be running but execution just stops... no more output..  it's not a zombie process I checked top.  It hasn't met the memory limit either and if it did wouldn't it exit?</p>
  
  <p>What is going on?  It's a real pain to babysit this script and write custom code to nudge it along.  What is going on?  I read up on unix maybe cleaning up zombies but it's not a zombie.  I know it's not php settings.. and it's not running through a webserver it's from command line only so what gives.</p>