29 error_reporting(E_ALL);
31 date_default_timezone_set(
'Europe/London');
34 require_once dirname(__FILE__) .
'/../Classes/PHPExcel/IOFactory.php';
48 echo date(
'H:i:s') ,
' Current memory usage: ' , (memory_get_usage(
true) / 1024 / 1024) ,
" MB" , PHP_EOL;
53 $objWriter->save(str_replace(
'.php',
'.xls', __FILE__));
54 echo date(
'H:i:s') ,
" File written to " , str_replace(
'.php',
'.xls', __FILE__) ,
PHP_EOL;
58 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())
Load from Excel2003XML PHP_EOL