php_zip does not exist in php 5.3.5

后端 未结 3 1344
野趣味
野趣味 2021-02-12 15:11

I\'m in the process of using PHPExcel. One of the requirements is that I need to enable php_zip.

(...) if you need PHPExcel to handle .xlsx or .ods files

相关标签:
3条回答
  • 2021-02-12 15:39

    I've had a similar problem with a different library. WAMP doesn't include many libraries by default for some reason.

    What I did was download the full PHP installation as a zip from php.net and the required dll was found in the extensions folder just as it is in WAMP. I just copied it from the zip to the WAMP extension folder and it worked fine.

    0 讨论(0)
  • 2021-02-12 15:43

    In fact, Zip is included by default. It is a bug that the line is still included.

    0 讨论(0)
  • 2021-02-12 15:55

    marc answer is right. I wanted to add a comment that using

    extension_loaded('zip');
    

    returns false as it is no longer an extension, you could use

    class_exists('ZipArchive');
    

    to check for it now.

    0 讨论(0)
提交回复
热议问题