29error_reporting(E_ALL);
31date_default_timezone_set(
'Europe/London');
34require_once dirname(__FILE__) .
'/../Classes/PHPExcel/IOFactory.php';
40echo
date(
'H:i:s') ,
" Write to Excel2007 format" ,
PHP_EOL;
42$objWriter->save(str_replace(
'.php',
'.xlsx', __FILE__));
43echo
date(
'H:i:s') ,
" File written to " , str_replace(
'.php',
'.xlsx', __FILE__) ,
PHP_EOL;
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
memory_get_peak_usage(true)/1024/1024)
An exception for terminatinating execution or to throw for unit testing.
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
static load($pFilename)
Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution.