title: Importing csv timeout issue
body: <p>I'm trying to modify a csv import function which times out after 60 sec of importing. For every line there are images that are resized and some other code is executed. </p>
  
  <p>I know the vps can handle this but in batches because I have another website on the same server that runs a different csv program but does the same thing. That program can import 8000 lines and resize images as well. The settings there are: process 10 lines and wait 3 sec, repeat.</p>
  
  <p><strong>Settings I raised:</strong> </p>
  
  <ul>
  <li>set_time_limit </li>
  <li>max_execution_time</li>
  <li>Browser http keep alive timeout</li>
  </ul>
  
  <p>I have tried sleep() for every 10th line but this only makes the process import fewer lines</p>
  
  <pre><code>if( (($current_line % 10) == 0) &amp;&amp; ($current_line != 0) )
  {
    sleep(3);
  }
  </code></pre>
  
  <p>This is how the script loops through the file</p>
  
  <pre><code>for ($current_line = 0; $line = fgetcsv($handle, MAX_LINE_SIZE, Tools::getValue('separator')); $current_line++)
  {
  //code here
  }
  </code></pre>
  
  <p>Server:</p>
  
  <ul>
  <li>Apache</li>
  <li>PHP 5.3.3</li>
  <li>MYSQL</li>
  <li>Varnish cache</li>
  </ul>
  
  <p><strong>What can I do to make this work?</strong></p>