title: PHPExcel XLS not recognised as an OLE file
body: <p>I developed a PHP web application using PHPExcel libraries. All is working properly except with some Excel documents which strangely cannot be recognized as an Excel doc. When I open these files with Microsoft Excel and save them as xls, csv, xlsx, then everything works well. 
  So... I think some Excel files are not exactly what their extension says. Perhaps they are disguised XML? Is it possible to get XML support with PHPExcel?</p>
  
  <p>Here's the error:</p>
  
  <p><code>Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'The filename /tmp/phphrnIR2 is not recognised as an OLE file' in /home/www/text/excel/reader/Classes/PHPExcel/Shared/OLERead.php:89 Stack trace: #0 /home/test/excel/reader/Classes/PHPExcel/Reader/Excel5.php(1164): PHPExcel_Shared_OLERead-&gt;read('/tmp/phphrnIR2') #1 /home/www/text/excel/reader/Classes/PHPExcel/Reader/Excel5.php(612): PHPExcel_Reader_Excel5-&gt;_loadOLE('/tmp/phphrnIR2') #2 /home/www/test/excel/actions.php(60): PHPExcel_Reader_Excel5-&gt;load('/tmp/phphrnIR2') #3 /home/www/test/excel/index.php(77): include_once('/home/www/test/ex...') #4 {main} thrown in /home/www/test/excel/reader/Classes/PHPExcel/Shared/OLERead.php on line 89</code></p>
  
  <p>And the php code for file recognition:</p>
  
  <pre><code> $name     = $_FILES['file']['name'];
                      $tname    = $_FILES['file']['tmp_name'];
                      $type     = $_FILES['file']['type'];
  
                      if($type == 'application/vnd.ms-excel')
                      {
                              // Excel 97 extension
                              $ext = 'xls';
                      }
                      else if($type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
                      {
                              // Excel 2007 and 2010 extension
                              $ext = 'xlsx';
                      }
  
  
                      else if($type == 'text/csv')
                      {
                              // Excel CSV extension
                              $ext = 'csv';
  
  
                      }else{
  
                              // Invalid Extension   
                      ?&gt; 
                              &lt;script languaje="javascript"&gt;
                                    swal("Bad file...", "A valid extension must be XLS, XLSX o CSV!", "error");
                              &lt;/script&gt; 
                              &lt;?php
                              exit();
                      }
   //reader creation
                      $objReader = PHPExcel_IOFactory::createReader($$ext);
  
                      //uploading file
                      $objPHPExcel = $objReader-&gt;load($tname);
  
  
                      $dim = $objPHPExcel-&gt;getActiveSheet()-&gt;calculateWorksheetDimension();
  </code></pre>