繁体   English   中英

php zip文件到多个zip文件

[英]php zip file to multiple zip files

我正在使用php生成一个最大可以变为50MB的文件。 在脚本末尾,我需要将文件发送到给定的电子邮件地址。 我想将文件切成多个块,这样我就可以发送每个附件都不太大的电子邮件。 在我看来,显而易见的解决方案是将文件压缩为zip部分。 但是我似乎找不到如何使用php中的zip分割文件的方法。

谁能帮助我,或者为我指出更好的解决方案? :)

easyzip对于当前版本的php有一个错误。 替换此行:

define(FUNCTION_NOT_FOUND,'Error: gzcompress() function is not found');
define(FILE_NOT_FOUND,'Error: file is not found');
define(DIRECTORY_NOT_FOUND,'Error: directory is not found');

以下:

define("FUNCTION_NOT_FOUND",'Error: gzcompress() function is not found');
define("FILE_NOT_FOUND",'Error: file is not found');
define("DIRECTORY_NOT_FOUND",'Error: directory is not found');

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM