php 在本地主机上启用 ZipArchive

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12477837/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 03:37:48  来源:igfitidea点击:

Enable ZipArchive on localhost

phplocalhostziparchive

提问by iSun

I need to enable ZipArchive php class on my localhost, How can I enable it !?

我需要在我的 ZipArchive php 类上启用,我该localhost如何启用它!?

回答by wesside

add extension=zip.soto your php.iniif you already have it installed (not sure what OS you're on)

如果您已经安装了它extension=zip.so,请添加到您的php.ini(不确定您使用的是什么操作系统)

Linux: pecl install zip

Linux: pecl install zip

Restart the web server once php.ini is edited.

编辑完 php.ini 后重新启动 Web 服务器。