3 error_reporting(E_ALL);
4 ini_set(
'display_errors', TRUE);
5 ini_set(
'display_startup_errors', TRUE);
6 date_default_timezone_set(
'Europe/London');
8 define(
'EOL',(PHP_SAPI ==
'cli') ?
PHP_EOL :
'<br />');
10 date_default_timezone_set(
'Europe/London');
13 require_once dirname(__FILE__) .
'/../Classes/PHPExcel.php';
15 echo date(
'H:i:s') ,
" Create new PHPExcel object" ,
EOL;
21 for ($i = 0; $i < 10; $i++) {
23 $style->getFont()->setSize($i + 4);
29 for ($col = 0; $col < 50; $col++) {
39 echo date(
'H:i:s') ,
" Add data (end), time: " . round(
$d, 2) .
" s",
EOL;
44 $objWriter->save(str_replace(
'.php',
'.xlsx', __FILE__));
45 echo date(
'H:i:s') ,
" File written to " , str_replace(
'.php',
'.xlsx', pathinfo(__FILE__, PATHINFO_BASENAME)) ,
EOL;
48 echo date(
'H:i:s') ,
" Peak memory usage: " , (memory_get_peak_usage(
true) / 1024 / 1024) ,
" MB" , EOL;
51 echo 'File has been created in ' , getcwd() ,
EOL;
for($col=0; $col< 50; $col++) $d
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
Create styles array
The data for the language used.
static stringFromColumnIndex($pColumnIndex=0)
String from columnindex.