title: PHPExcel causes problems
body: <p>I'm trying to deal with Excel sheets in PHP and the following code causes irritating problems.</p>
  
  <pre><code>$getOrderFile = $this-&gt;db-&gt;query("SELECT order_file FROM orders WHERE id='".$order."'")-&gt;fetch_assoc();
  $excelReader = PHPExcel_IOFactory::createReaderForFile('xls/'.$getOrderFile["order_file"]);
  $excelReader-&gt;setReadDataOnly(true);
  $Excel = $excelReader-&gt;load('xls/'.$getOrderFile["order_file"]);
  return $Excel-&gt;setActiveSheetIndex(0)-&gt;getHighestRow();
  </code></pre>
  
  <p>Now, I checked the script with two variants of $getOrderFile["order_file"]:
  1. excel1.xlxs
  2. excel1.xls</p>
  
  <p>When $getOrderFile["order_file"] equals excel1.xlxs - the page goes completely blank. There's no content displayed. And should there be any additional text in HTML - it isn't displayed. As if there was "exit;" somewhere but isn't.</p>
  
  <p>When $getOrderFile["order_file"] equals excel1.xls - the pages goes "missing". I get "The webpage is not accessible" (404).</p>
  
  <p>Can somebody tell me what is wrong? I just want to get the rowcount and... well. The whole system goes nuts.</p>
  
  <p>Thanks for your help!</p>