29 error_reporting(E_ALL);
31 date_default_timezone_set(
'Europe/London');
34 require_once dirname(__FILE__) .
'/../Classes/PHPExcel/IOFactory.php';
42 $objWriter->save(str_replace(
'.php',
'.xlsx', __FILE__));
43 echo date(
'H:i:s') ,
" File written to " , str_replace(
'.php',
'.xlsx', __FILE__) ,
PHP_EOL;
47 echo date(
'H:i:s') ,
" Peak memory usage: " , (memory_get_peak_usage(
true) / 1024 / 1024) ,
" MB" , PHP_EOL;
static load($pFilename)
Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution.
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())