PHPExcel will not work

Topics: User Forum
Apr 4, 2014 at 12:11 PM
PHP Version 5.2.12
PHPExcel 1.8.0
Problem::
12:52:53 Create new PHPExcel object
12:52:54 Set document properties
12:52:54 Add some data
12:52:54 Rename worksheet
12:52:54 Write to Excel2007 format

Fatal error: Class 'ZipArchive' not found in C:\WEB\Classes\PHPExcel\Writer\Excel2007.php on line 227
Coordinator
Apr 4, 2014 at 5:00 PM
So do you have the php_zip extension enabled?
Apr 4, 2014 at 11:54 PM
I cant find php_zip anywhere. nothing in phpinfo.php, no dll in php directory. nothing.... I am sure that is my problem. I just don't know where it is or how to find it.
Apr 5, 2014 at 12:10 AM
well heck.... found the dll in ext folder..... I will try to enable. thanks
Apr 9, 2014 at 7:23 AM
Edited Apr 9, 2014 at 8:46 AM
Okay,, I may be looking at the wrong area. Here is the error I get. Any Ideas

Fatal error: Class 'ZipArchive' not found in C:\WEB\Classes\PHPExcel\Writer\Excel2007.php on line 227

I have found the zip dll in c:\php\ext and added this to the Apache 2.2 with the extension
I have moved the dll to c:\php no results
Marked as answer by jimneely on 4/9/2014 at 1:52 AM
Apr 9, 2014 at 12:13 PM
Move back the dll in the c:\php\ext directory
Look in the file php.ini (*), seeks the "extension=php_zip.dll" line.
If there's a semicolon at the beginning of line, deletes it, if the line does not exist, adds there following the other "extension=" lines.
Restarts Apache if php is loaded as a module.
phpinfo() should show you the zip extension loaded.

(*) This file can be found in the php directory or elsewhere. phpinfo() will educate you with the value of "Loaded Configuration File"