ZipArchive library not included when using PHPExcel

I am using CodeIgniter and PHPExcel to read and write to excel files.

Everything worked fine on the local host, but when I downloaded the PHP CodeIgniter application to the server in pagodabox , I received the following message when I tried to read data from excel files.

Fatal error: Uncaught exception 'Exception' with message 'ZipArchive library is not enabled' in /var/www/application/libraries/PHPExcel/Reader/Excel2007.php
+5
source share
3 answers

For writing, PHPExcel provides PCLZip as an alternative to ZipArchive. You can configure it for use by calling

PHPExcel_Settings::setZipClass(PHPExcel_Settings::PCLZIP);

But if you want to read any of the files of the zip file format (for example, xlsx, ods), you will need the extension of the extension of the PHP zip archive

EDIT

1.8.0, PCLZIP ,

+6

ZipArchive requirement PHP Excel. , .

, . , , , , .

PECL php.ini . , , .

+4

PHP version 5.2.0 or higher
PHP extension php_zip enabled *)
PHP extension php_xml enabled
PHP extension php_gd2 enabled (if not compiled in)
+1

All Articles