29 error_reporting(E_ALL);
31 date_default_timezone_set(
'Europe/London');
34 require_once dirname(__FILE__) .
'/../Classes/PHPExcel/IOFactory.php';
50 echo date(
'H:i:s') ,
' Current memory usage: ' , (memory_get_usage(
true) / 1024 / 1024) ,
" MB" , PHP_EOL;
55 $objWriter->save(str_replace(
'.php',
'.xlsx', __FILE__));
56 echo date(
'H:i:s') ,
" File written to " , str_replace(
'.php',
'.xlsx', __FILE__) ,
PHP_EOL;
60 echo date(
'H:i:s') ,
" Peak memory usage: " , (memory_get_peak_usage(
true) / 1024 / 1024) ,
" MB" , PHP_EOL;
static createReader($readerType='')
Create PHPExcel_Reader_IReader.
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
static setZipClass($zipClass)
Set the Zip handler Class that PHPExcel should use for Zip file management (PCLZip or ZipArchive) ...