摘要:
Ubuntu需安装zlibsudo apt-get install rubysudo apt-get install zlib1g zlib1g.devWindows需开启php_zip.dll如果在 "...\php\ext\" 没有这个文件,可以到网上下载一个然后修改 "...\php\php.ini" ,找到 "extension=php_zip.dll" 去掉 ";",如果没有这行就加上。$filename = "xxxx.zip"; ob_end_clean(); $zip = new 阅读全文