title: PHPExcel reading past $highestRow
body: <p>I'm using PHPExcel to load xls files into a mysql database. Everything is working fine except for one thing: the PHPExcel reads ALL rows in the worksheet, even the blank ones and if, for example, my xls has 100 rows, the reader loops all the way down to row #3359 (which I suppose is the default number of rows for a blank worksheet).</p>
  
  <p>What makes the reader count even the blank rows? 
  This is my code: </p>
  
  <pre><code>$objPHPExcel = PHPExcel_IOFactory::load($path);
  $objWorksheet = $objPHPExcel-&gt;setActiveSheetIndex(0);
  
      $highestRow = $objWorksheet-&gt;getHighestRow();
      $highestColumn = $objWorksheet-&gt;getHighestColumn();
      $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn);
      $nrColumns = ord($highestColumn) - 64;
  
      $rowsadded=0;
      $begin_row=5; // 1st line of data in excel file
      for ($row = $begin_row; $row &lt;= $highestRow; ++ $row) {
          $val=array();
          for ($col=0; $col &lt; $highestColumnIndex; $col++) {
              $cell = $objWorksheet-&gt;getCellByColumnAndRow($col, $row);
              $val[] = $cell-&gt;getValue();
          }
  
          if ($val[0]&lt;&gt;'' &amp;&amp; $val[1]&lt;&gt;'') { //check that row contains data before inserting
  
              $rowsadded++;
              $sql1 = sprintf("INSERT INTO aitisi (name_u, onoma_u, asf_gr, code, compid, im_egr, im_exp, symb, programa, cost, showcost, omadiko, ar_tayt, afm, dieyth, poli, til_st, til_kin, ep_te1, on_te1, ep_te2, on_te2, ep_te3, on_te3, ep_te4, on_te4, name_us, onoma_us) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                     GetSQLValueString($val[0], "text"),
                     GetSQLValueString($val[1], "text"),
                                         ...
                     GetSQLValueString($val[11], "text"),
                     GetSQLValueString($val[12], "text"),
                     GetSQLValueString($val[13], "text"),
                     GetSQLValueString($val[14], "text"),
                     GetSQLValueString($val[15], "text"),
                     GetSQLValueString($val[16], "text"),
                     GetSQLValueString($val[17], "text")).';';
              $result = mysql_query($sql1) or die(mysql_error());
              $field_id = mysql_insert_id();
                       }
  </code></pre>