title: phpExcel : Failed to load resource: net::ERR_CONNECTION_RESET
body: <p>I actualy use phpExcel to get an excel file that i recover from the user with an <code>&lt;input type='file'&gt;</code> and after i convert this excel file in csv file. </p>
  
  <p>My script work and the csv file is generate. The problem is after my script finish the page never stop to loading and i get this error in my console : <code>Failed to load resource: net::ERR_CONNECTION_RESET</code>.</p>
  
  <p>Their is another problem i use also an other object in my script for display the menu and the menu don't display is i use PHPExcel.</p>
  
  <p>Their is my code for call my PHPExcel object creation :</p>
  
  <pre><code>&lt;?php
  ///Get excelFile ///        
  if(isset($_FILES['excelFileCandidat']))
  {
     require_once dirname(__FILE__) . "/../../lib/ExcelCandidat/ExcelCandidat.class.php";
     $file = new ExcelCandidat($_FILES['excelFileCandidat']);
     $file-&gt;excelFileToCsv();
  }
  
  
  
  echo "&lt;table width='100%'&gt;";
  echo     "&lt;tr&gt;";
  echo        "&lt;td&gt;";
  echo           "Import new Excel File : ";
  echo           "&lt;input type='file' name='excelFileCandidat' /&gt;";
  echo        "&lt;/td&gt;";
  echo        "&lt;td&gt;";
  echo           "&lt;input type='submit' name='submit' value='Send' /&gt;";
  echo        "&lt;/td&gt;";
  echo     "&lt;/tr&gt;";
  echo "&lt;/table&gt;";
  ?&gt;
  </code></pre>
  
  <p>And my object :</p>
  
  <pre><code>&lt;?php
  require_once dirname(__FILE__) . "/../PHPExcel/PHPExcel.php";
  
  class ExcelCandidat
  {
      private $excelFile;
      public function __construct($file)
      {
          $this-&gt;excelFile = $file;
      }
  
      public function excelFileToCsv()
      {
          set_time_limit(600);
          if (!is_array($this-&gt;excelFile))
          {
               throw new Exception("STR_APPROCHECK_ERR");
          }
  
          $newFilename = 'csvCandidat';
          $ext = strrchr($this-&gt;excelFile['name'], '.');
          $isExcel = stripos($ext, '.xls') !== false;
          if($isExcel) 
          {
              ini_set('memory_limit', '256M');
              $objPHPExcel = PHPExcel_IOFactory::load($this-&gt;excelFile['tmp_name']);
              $worksheet = $objPHPExcel-&gt;getActiveSheet();
              $writer = PHPExcel_IOFactory::createWriter($objPHPExcel , 'CSV');
              $writer-&gt;setDelimiter(';');
              $writer-&gt;setEnclosure('"');
              $writer-&gt;setUseBOM(false);
              $tmpName = dirname(__FILE__) . '/file/' . $newFilename . date('ymdHis') .'.csv';
              $writer-&gt;save($tmpName);
              unset($objPHPExcel, $writer);
          }
      }
  }
  ?&gt;
  </code></pre>