Issue saving large file

Topics: User Forum
Aug 20, 2013 at 10:04 PM
Hi
I'm creating a xlsx file using data from a database, the code has no problem with light files (200 rows,200 cols) ... when the file has more data, the script creates the file,and i can see that the file was created at the server, but i never get any answer from the server :(
some ideas about what could be?
btw, i use this code:
<?php
ini_set('memory_limit', '512M');
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_sqlite3;
PHPExcel_Settings::setCacheStorageMethod($cacheMethod);
...
some code for reading from database, etc
...
$filename = 'xls/myreport_'.$procnum.'.xlsx';
if(is_file($filename)){
    unlink($filename);
}
ob_end_clean();
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
ob_end_clean();
$objWriter->save("./".$filename);
$objPHPExcel->disconnectWorksheets();
unset($objPHPExcel);
if(is_file($filename)){
    echo("File was created|$filename");
}
else{
    echo("Sorry ...");
}
exit;
?>