I have an Excel file (about 5000 to 8000 rows & 32 cols) that would be edited with values from a table. I have succesfully done this but I want to reduce the scripts average run time.
So i tried saving the loaded object to the session and checking if it exist every time the script runs instead of reloading every time.
if (!isset($_SESSION['col10Read']))
{
global $sheet;
$objPHPExcel = $objReader->load($inputFileName);
$_SESSION['col10Read'] = $objPHPExcel;
$sheet = $objPHPExcel->getActiveSheet();
}
else
{
global $sheet;
$sheet = $_SESSION['col10Read']->getActiveSheet();
}
but when i run the code after the first time (when my session variable exist), I get this error:
Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'Your requested sheet index: 0 is out of bounds. The actual number of sheets is 0.'
I've been trying diff ways for a day now, searched Google endlessly, any help would apprieciated.
df -hshould shed some light. It could of course be another problem entirely ;-) - Ben Hillier