用phpexcel1.0.0生成excel文件,下载的phpexcel1.0.0class里的01simple.php例子运行出错,[Fatal error: Class 'ZipArchive' not found],请教是什么原因~~[Class 'ZipArchive' ]要另外下载的吗?
我用的是excel2002(是不是只有excel2007才可以用phpexcel1.0.0的呀?),php5.2.1,apache_2.2.4

解决方案 »

  1.   

    Windows users need to enable php_zip.dll inside of php.ini in order to use these functions.  看看你php.ini里面的php_zip.dll打开了么有。
      

  2.   

    [Fatal error: Class 'ZipArchive' not found]的错误我已经解决了,因为php_zip.dll没有加载进来,但是生成的excel文件打不开,说此文件的形式是错误的,是不是只有excel2007才能用phpexcel1.0.0的呀?
      

  3.   

    没用过,不过刚才gg了一下。
    PHP Excel 2007 classes
    Project providing a set of classes for the PHP programming language, which allow you to write to Excel 2007 files and read from Excel 2007 files如果是lz所说的话,生成的File是2007格式的,也只能在2007才能认。
      

  4.   

    是的
    还是直接发送EXCEL的HTTP头生成好点