thoroc / php_ole Goto Github PK
View Code? Open in Web Editor NEWJohann Hanne's PHP_OLE library
Johann Hanne's PHP_OLE library
PHP file
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_biffwriter.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_format.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_formula_jmb.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_olewriter.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_workbook.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_workbookbig.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'class.writeexcel_worksheet.inc.php';
require_once plugin_dir_path( dirname( FILE ) ) . 'functions.writeexcel_utility.inc.php';
Executing
$fname = tempnam(sys_get_temp_dir(), "bigfile.xls");
$workbook = new writeexcel_workbookbig($fname);
$worksheet = $workbook->addworksheet();
$workbook->close();
unlink($fname);
Get error
PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE in [path here]/class.ole_pps_file.php on line 65
PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE in [path here]/class.ole_pps_file.php on line 65
PHP Warning: Undefined property: ole_pps_file::$_PPS_FILE in [path here]/class.ole_pps_file.php on line 65
PHP Warning: Undefined property: stdClass::$_BIG_BLOCK_SIZE in [path here]/class.ole_pps_root.php on line 56
PHP Warning: Undefined property: stdClass::$_SMALL_BLOCK_SIZE in [path here]/class.ole_pps_root.php on line 58
PHP Warning: Undefined variable $sRes in [path here]/class.ole_pps.php on line 172
PHP Warning: Undefined property: ole_pps_root::$_PPS_FILE in [path here]/class.ole_pps.php on line 110
reported missing on thoroc/php_writeexcel#11
In src/functions.ole.php
:
define(PpsType_Root, 5);
define(PpsType_Dir, 1);
define(PpsType_File, 2);
define(DataSizeSmall, 0x1000);
define(LongIntSize, 4);
define(PpsSize, 0x80);
Should be replaced with (quoted constants):
define('PpsType_Root', 5);
define('PpsType_Dir', 1);
define('PpsType_File', 2);
define('DataSizeSmall', 0x1000);
define('LongIntSize', 4);
define('PpsSize', 0x80);
to avoid the warnings:
PHP Notice: Use of undefined constant PpsType_Root - assumed 'PpsType_Root' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 3
PHP Notice: Use of undefined constant PpsType_Dir - assumed 'PpsType_Dir' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 4
PHP Notice: Use of undefined constant PpsType_File - assumed 'PpsType_File' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 5
PHP Notice: Use of undefined constant DataSizeSmall - assumed 'DataSizeSmall' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 6
PHP Notice: Use of undefined constant LongIntSize - assumed 'LongIntSize' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 7
PHP Notice: Use of undefined constant PpsSize - assumed 'PpsSize' in /home/app/vendor/thoroc/php_ole/src/functions.ole.php on line 8
In class.ole_pps_root.php
, the line
array_push($raList, &$aThis[0]);
shows an error: PHP Fatal error: Call-time pass-by-reference has been removed in /home/vagrant/app/vendor/thoroc/php_ole/src/class.ole_pps_root.php on line 305
I think this can be removed but I'm not sure what this does
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.