【问题标题】:phpexcel Fatel Error when opening filephpexcel打开文件时出现致命错误
【发布时间】:2014-04-16 07:23:08
【问题描述】:

我正在尝试在我的硬盘上打开一个 excel 文件并获取。

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1032 
bytes) in C:\WEB\Classes\PHPExcel\Cell.php on line 1228

【问题讨论】:

    标签: phpexcel phpexcelreader


    【解决方案1】:

    PHP 允许使用 128 MB 内存。

    试试这个

    <?php ini_set('memory_limit', '-1'); ?>
    

    【讨论】:

    • 时间取决于文件大小;)
    • 2.97 MB 两张就这样。在我的硬盘上?哇
    • @jimneely 解压后的数据总是比压缩后的数据需要更多的内存
    猜你喜欢
    • 1970-01-01
    • 2014-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-22
    • 1970-01-01
    相关资源
    最近更新 更多