Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Loading xlsx to reader

$
0
0
Hello,

Couldn't find much in my searching online. My issue is occurring when I attempt to load xlsx files into PHPExcel. Extension xls works fine. It is not a memory issue. Please see code below:
try {
    $objReader = PHPExcel_IOFactory::createReader('Excel2007');
    $objPHPExcel = $objReader->load($file);
} catch (Exception $e) {
    die('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME) 
    . '": ' . $e->getMessage());
}
echo 'Post load data';
I do not get an error from the catch and do not get to 'Post load data'.

When attempting to perform:

PHPExcel_IOFactory::identify($file);

I encounter the same problem. Any ideas?

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>