ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
17html.php
Go to the documentation of this file.
1 <?php
29 error_reporting(E_ALL);
30 ini_set('display_errors', TRUE);
31 ini_set('display_startup_errors', TRUE);
32 date_default_timezone_set('Europe/London');
33 
34 define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
35 
36 date_default_timezone_set('Europe/London');
37 
38 include "05featuredemo.inc.php";
39 
41 require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
42 
43 
44 echo date('H:i:s') , " Write to HTML format" , EOL;
45 $callStartTime = microtime(true);
46 
48 $objWriter->setSheetIndex(0);
49 //$objWriter->setImagesRoot('http://www.example.com');
50 $objWriter->save(str_replace('.php', '.htm', __FILE__));
51 $callEndTime = microtime(true);
53 echo date('H:i:s') , " File written to " , str_replace('.php', '.htm', pathinfo(__FILE__, PATHINFO_BASENAME)) , EOL;
54 echo 'Call time to write Workbook was ' , sprintf('%.4f',$callTime) , " seconds" , EOL;
55 // Echo memory usage
56 echo date('H:i:s') , ' Current memory usage: ' , (memory_get_usage(true) / 1024 / 1024) , " MB" , EOL;
57 
58 
59 // Echo memory peak usage
60 echo date('H:i:s') , " Peak memory usage: " , (memory_get_peak_usage(true) / 1024 / 1024) , " MB" , EOL;
61 
62 // Echo done
63 echo date('H:i:s') , " Done writing file" , EOL;
64 echo 'File has been created in ' , getcwd() , EOL;
$objPHPExcel
$callStartTime
Definition: 17html.php:45
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
Definition: IOFactory.php:132
if($is_dev) echo "Review changes write something in WHATSNEW and and then commit with log PHP_EOL
$callTime
Definition: 17html.php:52
$objWriter
Definition: 17html.php:47
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
$callEndTime
Definition: 17html.php:51
const EOL
Definition: 17html.php:34