我使用php来生成一个大小可以达到50MB的文件。在脚本的末尾,我需要将文件发送到给定的电子邮件地址。我想把文件切成多个块,这样我就可以发送每个附件都不太大的电子邮件。对我来说,最明显的解决方案似乎是将文件压缩成zip部分。但我似乎找不到如何在php中使用zip拆分文件。
有没有人能帮我,或者给我指个更好的解决方案?:)
发布于 2012-08-13 02:52:24
easyzip在当前版本的php上有一个bug。替换以下行:
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');https://stackoverflow.com/questions/10448389
复制相似问题