ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SylkReader.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 SYLK file" , PHP_EOL;
39 
40 echo date('H:i:s') , " Write to Excel2007 format" , PHP_EOL;
42 $objWriter->save(str_replace('.php', '.xlsx', __FILE__));
43 echo date('H:i:s') , " File written to " , str_replace('.php', '.xlsx', __FILE__) , PHP_EOL;
44 
45 
46 // Echo memory peak usage
47 echo date('H:i:s') , " Peak memory usage: " , (memory_get_peak_usage(true) / 1024 / 1024) , " MB" , PHP_EOL;
48 
49 // Echo done
50 echo date('H:i:s') , " Done writing file" , PHP_EOL;
static load($pFilename)
Loads PHPExcel from file using automatic PHPExcel_Reader_IReader resolution.
Definition: IOFactory.php:190
static createWriter(PHPExcel $phpExcel, $writerType='')
Create PHPExcel_Writer_IWriter.
Definition: IOFactory.php:132
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
$objWriter
Definition: SylkReader.php:41
$objPHPExcel
Definition: SylkReader.php:38
Load from SYLK PHP_EOL
Definition: SylkReader.php:34