PHP PHP5 Pear
Originally used apache2.2+php 5.2.17, recently because the user increased, PHP code for the system load is quite high, so want to upgrade PHP to the latest version of 5.4.17, originally full of hope 5.4 can improve the code performance, help me temporarily solve the urgent need!
But found that 5.4 of many places with 5.2 incompatible, the original 5.2 can use the function in 5.4 can not run up! I'm so worried about you!
The following actions are performed when the pear is installed:
CD php/php go-pear.pharpear list-Perform normal
For example: The original export of Excel Pear Library: spreadsheet_excel_writer-0.9.3, installed after 5.4 found that the default without pear installation package, painstakingly loaded on pear, this export Excel function also can not run up. Inexplicable wonderful reported the following error:
Warning:require (.. /.. /inc/conn.php): Failed to open stream:no such file or directory in C:\wwwroot\excel.php on line 2PHP Fatal error: req Uire (): Failed opening required '. /.. /inc/conn.php ' (include_path= '); C:\php\pear ') in C:\wwwroot\excel.php on line 2Fatal error:require (): Failed opening required '. /.. /inc/conn.php ' (include_path= '); C:\php\pear ') in C:\wwwroot\excel.php on line 2
Export code in version 5.2 is able to run normally, 5.4 version I am confused! ~
Please ask the brothers who have encountered such problems! Thank you so much!
Reply to discussion (solution)
You may have to give up pear, or just give up php5.3 and the above version
PHP upgrade too fast, but also put a lot of restrictions on their own
Pear contributors do not have the energy to keep up with the pace of change in PHP, or simply disagree with PHP's transformation
You may have to give up pear, or just give up php5.3 and the above version
PHP upgrade too fast, but also put a lot of restrictions on their own
Pear contributors do not have the energy to keep up with the pace of change in PHP, or simply disagree with the amount of change in PHP, the problem is so serious.
I am now using a 5.2.17 performance some can not keep up, the urgent need to optimize. Otherwise I would not change the version of the ~
May I ask the moderator PHP export Excel can have what good method ah? The reason why use pear is because he has spreadsheet_excel_writer this performance is relatively good Excel export class library, the original use of phpexcel performance is too poor, and CSV format can not meet the need! ~
If you have a good way to export Excel to provide, greatly appreciated Ah!! ~
If you only need the Spreadsheet_excel_writer class, then you might as well copy him and the relevant files.
But in php5.4 the error is not much, change still can use
If you only need the Spreadsheet_excel_writer class, then you might as well copy him and the relevant files.
But in php5.4 the error is not much, change still can use
I tried copying this class library to the site directory, 5.4 version execution is still not responding open php.ini error log also does not output what problem, only in the PHP installation directory execution
PHP c:\wwwroot\excel.php will output the error above! ~
I was forced to do it now. May the moderator have other good ways to export Excel AH?! Thank you!
system.php
function Tmpdir () changed to static function Tmpdir ()
ole.php
function Asc2ucs ($ASCII) changed to static function Asc2ucs ($ASCII)
function localdate2ole ($date = null) changed to static function localdate2ole ($date = null)
worksheet.php 2490 Lines
$this->_append (& $string, True); instead $this->_append ($string, true);
This should be possible, and if there is a mistake, the resulting XSL file is the one where you can see the error message.
system.php
function Tmpdir () changed to static function Tmpdir ()
ole.php
function Asc2ucs ($ASCII) changed to static function Asc2ucs ($ASCII)
function localdate2ole ($date = null) changed to static function localdate2ole ($date = null)
worksheet.php 2490 Lines
$this->_append (& $string, True); instead $this->_append ($string, true);
This should be possible, and if there is a mistake, the resulting XSL file is the one where you can see the error message.
Reply, I'll try 1~.
system.php
function Tmpdir () changed to static function Tmpdir ()
ole.php
function Asc2ucs ($ASCII) changed to static function Asc2ucs ($ASCII)
function localdate2ole ($date = null) changed to static function localdate2ole ($date = null)
worksheet.php 2490 Lines
$this->_append (& $string, True); instead $this->_append ($string, true);
This should be possible, and if there is a mistake, the resulting XSL file is the one where you can see the error message.
Ah, tried, still no effect! ~ Without any error ~