ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Excel2003XMLReader.php
Go to the documentation of this file.
1 <?php
29 error_reporting(E_ALL);
30 
31 date_default_timezone_set('Europe/London');
32 
34 require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
35 
36 
37 echo date('H:i:s') , " Load from Excel2003XML file" , PHP_EOL;
38 $callStartTime = microtime(true);
39 
41 $objPHPExcel = $objReader->load("Excel2003XMLTest.xml");
42 
43 
44 $callEndTime = microtime(true);
46 echo 'Call time to read Workbook was ' , sprintf('%.4f',$callTime) , " seconds" , PHP_EOL;
47 // Echo memory usage
48 echo date('H:i:s') , ' Current memory usage: ' , (memory_get_usage(true) / 1024 / 1024) , " MB" , PHP_EOL;
49 
50 
51 echo date('H:i:s') , " Write to Excel5 format" , PHP_EOL;
53 $objWriter->save(str_replace('.php', '.xls', __FILE__));
54 echo date('H:i:s') , " File written to " , str_replace('.php', '.xls', __FILE__) , PHP_EOL;
55 
56 
57 // Echo memory peak usage
58 echo date('H:i:s') , " Peak memory usage: " , (memory_get_peak_usage(true) / 1024 / 1024) , " MB" , PHP_EOL;
59 
60 // Echo done
61 echo date('H:i:s') , " Done writing file" , PHP_EOL;
static createReader($readerType='')
Create PHPExcel_Reader_IReader.
Definition: IOFactory.php:161
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
Definition: IOFactory.php:132
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
Load from Excel2003XML PHP_EOL
$callStartTime