Home  >  Article  >  Backend Development  >  php如何尽快导入大于1万行的excel文件

php如何尽快导入大于1万行的excel文件

WBOY
WBOYOriginal
2016-06-06 20:39:191353browse

目前有一个excel文件大于1万行,共100列,用phpexcel倒得时候老是内存溢出,而且很慢。有没什么其他好的方法呢?求解决!

回复内容:

目前有一个excel文件大于1万行,共100列,用phpexcel倒得时候老是内存溢出,而且很慢。有没什么其他好的方法呢?求解决!

我之前解决过此类问题:
1.分页导出,每次导出200行,也就是每页200条记录;
2.导出完成后,前端表单把页码增加1,继续导出,直到第5页导出完毕即可。

关注“PHP技术大全”微信公众号(phpgod),拿起手机,打开微信,轻松一扫下面的二维码,每天成长一点,成就大神就不远。
php如何尽快导入大于1万行的excel文件

http://www.zhihu.com/question/26528899

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn