Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
试图显示PHP页面时出错\u未完成\u分块\u编码_Php_Html - Fatal编程技术网

试图显示PHP页面时出错\u未完成\u分块\u编码

试图显示PHP页面时出错\u未完成\u分块\u编码,php,html,Php,Html,我有一个页面,通过foreach循环加载数据行列表。代码是这样的: <table> <thead>...</thead> <tbody> <?php foreach($data as $datarow){ ?> //data displayed here. about 10 hidden fields and then <tr>'s with 8 <td>'s each

我有一个页面,通过foreach循环加载数据行列表。代码是这样的:

<table>
    <thead>...</thead>
    <tbody>
    <?php foreach($data as $datarow){ ?>
       //data displayed here. about 10 hidden fields and then <tr>'s with 8 <td>'s each
    <?php } ?>
    </tbody>
</table>

...
//此处显示的数据。大约10个隐藏字段,然后每个字段有8个
当我在本地机器上运行(使用IIS)时,这会很好地渲染。即使$data中有20000多个元素

但当我发布到服务器并尝试运行此程序时,chrome调试器中出现以下错误:net::ERR_complete_CHUNKED_ENCODING。即使$data有大约500个元素。编辑:任何低于500的都可以

有人知道我如何解决这个错误吗?我是否必须增加IIS服务器上设置的值


提前感谢

运行phpinfo();请检查您的内存限制是否设置为一个正常的数字或镜像您的本地环境变量。可能重复:我看到了这一点,但对我的情况没有多大帮助。内存限制设置为128M