Dokumente
PHPExcel
Classes
Documentation
Examples
data
images
.gitignore
01pharSimple.php
01simple-download-ods.php
01simple-download-pdf.php
01simple-download-xls.php
01simple-download-xlsx.php
01simple.php
01simplePCLZip.php
02types-xls.php
02types.php
03formulas.php
04printing.php
05featuredemo.inc.php
05featuredemo.php
06largescale-with-cellcaching-sqlite.php
06largescale-with-cellcaching-sqlite3.php
06largescale-with-cellcaching.php
06largescale-xls.php
06largescale.php
07reader.php
07readerPCLZip.php
08conditionalformatting.php
08conditionalformatting2.php
09pagebreaks.php
10autofilter-selection-1.php
10autofilter-selection-2.php
10autofilter-selection-display.php
10autofilter.php
11documentsecurity-xls.php
11documentsecurity.php
12cellProtection.php
13calculation.php
13calculationCyclicFormulae.php
14excel5.php
15datavalidation-xls.php
15datavalidation.php
16csv.php
17html.php
18extendedcalculation.php
19namedrange.php
20readexcel5.php
21pdf.php
22heavilyformatted.php
23sharedstyles.php
24readfilter.php
25inmemoryimage.php
26utf8.php
27imagesexcel5.php
28iterator.php
29advancedvaluebinder.php
30template.php
31docproperties_write-xls.php
31docproperties_write.php
32chartreadwrite.php
33chartcreate-area.php
33chartcreate-bar-stacked.php
33chartcreate-bar.php
33chartcreate-column-2.php
33chartcreate-column.php
33chartcreate-composite.php
33chartcreate-line.php
33chartcreate-multiple-charts.php
33chartcreate-pie.php
33chartcreate-radar.php
33chartcreate-scatter.php
33chartcreate-stock.php
34chartupdate.php
35chartrender.php
36chartreadwriteHTML.php
36chartreadwritePDF.php
37page_layout_view.php
38cloneWorksheet.php
39dropdown.php
40duplicateStyle.php
41password.php
42richText.php
43mergeWorkbooks.php
44worksheetInfo.php
Excel2003XMLReader.php
Excel2003XMLTest.xml
GnumericReader.php
GnumericTest.gnumeric
OOCalcReader.php
OOCalcReaderPCLZip.php
OOCalcTest.ods
Quadratic.php
Quadratic2.php
SylkReader.php
SylkTest.slk
XMLReader.php
XMLTest.xml
runall.php
.gitattributes
.gitignore
.travis.yml
changelog.txt
composer.json
install.txt
license.md
chart
classes
config
datepicker
html2pdf_v4.03
language
lib
overlib
progress
templates
templates_c
admin_bearbeiten.php
config.inc.php
detail_prof.php
detail_prof_pdf.php
erf_besausg.php
erf_besschnitt.php
erf_deltas.php
erf_grundgehalt.php
erf_lb_bz.php
erf_lb_einmal.php
erf_lb_fz.php
erf_lz.php
erf_vza.php
func_LB_BZ.php
func_LB_BZ_fiktiv.php
func_LB_FZ.php
func_LB_FZ_alt.php
func_LB_LZ.php
func_LB_einmal.php
func_LB_obergrenze.php
func_LB_obergrenze_Limit.php
func_LB_obergrenze_Limit_stufe1.php
func_LB_obergrenze_Limit_stufe2.php
func_agent.php
func_besschnitt.php
func_doz_nachbes.php
func_doz_synopse.php
func_genUser.php
func_gesamtberechnung.php
func_grundgehalt.php
func_rollenrechte.php
func_zusammenstellung.php
funktionen_bearbeiten.php
graph_einzeljahr.php
graph_jahre.php
hauptframe.php
index.php
indexframe.php
jahrgang.php
korr_verg.php
load.php
login_log.php
logout.php
lzb_excel.php
menuframe.php
parameter.php
pdf_jahr.php
prof_anlegen.php
prof_bearbeiten.php
prof_bearbeiten.php_20180314
prognose.sql
rollen.php
topframe.php
ubersicht_jahr.php
ubersicht_jahr.php_20180829
user_anlegen.php
user_bearbeiten.php
useronline.php
80 lines
2.9 KiB
PHP
Executable File
80 lines
2.9 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* PHPExcel
|
|
*
|
|
* Copyright (c) 2006 - 2015 PHPExcel
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*
|
|
* @category PHPExcel
|
|
* @package PHPExcel
|
|
* @copyright Copyright (c) 2006 - 2015 PHPExcel (https://www.codeplex.com/PHPExcel)
|
|
* @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
|
|
* @version ##VERSION##, ##DATE##
|
|
*/
|
|
|
|
/** Error reporting */
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', TRUE);
|
|
ini_set('display_startup_errors', TRUE);
|
|
date_default_timezone_set('Europe/London');
|
|
|
|
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
|
|
|
|
date_default_timezone_set('Europe/London');
|
|
|
|
/** Include PHPExcel_IOFactory */
|
|
require_once dirname(__FILE__) . '/../Classes/PHPExcel/IOFactory.php';
|
|
|
|
|
|
if (!file_exists("14excel5.xls")) {
|
|
exit("Please run 14excel5.php first.\n");
|
|
}
|
|
|
|
echo date('H:i:s') , " Load workbook from Excel5 file" , EOL;
|
|
$callStartTime = microtime(true);
|
|
|
|
$objPHPExcel = PHPExcel_IOFactory::load("14excel5.xls");
|
|
|
|
$callEndTime = microtime(true);
|
|
$callTime = $callEndTime - $callStartTime;
|
|
|
|
echo 'Call time to load Workbook was ' , sprintf('%.4f',$callTime) , " seconds" , EOL;
|
|
// Echo memory usage
|
|
echo date('H:i:s') , ' Current memory usage: ' , (memory_get_usage(true) / 1024 / 1024) , " MB" , EOL;
|
|
|
|
|
|
// Save Excel 2007 file
|
|
echo date('H:i:s') , " Write to Excel2007 format" , EOL;
|
|
$callStartTime = microtime(true);
|
|
|
|
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
|
|
$objWriter->save(str_replace('.php', '.xlsx', __FILE__));
|
|
$callEndTime = microtime(true);
|
|
$callTime = $callEndTime - $callStartTime;
|
|
|
|
echo date('H:i:s') , " File written to " , str_replace('.php', '.xlsx', pathinfo(__FILE__, PATHINFO_BASENAME)) , EOL;
|
|
echo 'Call time to write Workbook was ' , sprintf('%.4f',$callTime) , " seconds" , EOL;
|
|
// Echo memory usage
|
|
echo date('H:i:s') , ' Current memory usage: ' , (memory_get_usage(true) / 1024 / 1024) , " MB" , EOL;
|
|
|
|
|
|
// Echo memory peak usage
|
|
echo date('H:i:s') , " Peak memory usage: " , (memory_get_peak_usage(true) / 1024 / 1024) , " MB" , EOL;
|
|
|
|
// Echo done
|
|
echo date('H:i:s') , " Done reading file" , EOL;
|
|
echo 'File has been created in ' , getcwd() , EOL;
|