29error_reporting(E_ALL);
 
   31date_default_timezone_set(
'Europe/London');
 
   34require_once dirname(__FILE__) . 
'/../Classes/PHPExcel/IOFactory.php';
 
   51echo 
date(
'H:i:s') , 
" Write to Excel5 format" , 
PHP_EOL;
 
   53$objWriter->save(str_replace(
'.php', 
'.xls', __FILE__));
 
   54echo 
date(
'H:i:s') , 
" File written to " , str_replace(
'.php', 
'.xls', __FILE__) , 
PHP_EOL;
 
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
memory_get_peak_usage(true)/1024/1024)
memory_get_usage(true)/1024/1024)
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
static createReader($readerType='')
Create PHPExcel_Reader_IReader.