首页 > html表单在较多数据情况下,POST数据接收不到

html表单在较多数据情况下,POST数据接收不到

数据大约1000条,用post提交表单,PHP服务端始终接收不到提交的值,但在数据量较少的情况下(100左右),一切正常,php.ini里已经把post_max_size修改成2047M,还是没有用,求解决~


这个问题 ... 首先先确定你的改动已经生效了 ...

<?php
echo ini_get( 'post_max_size' );

然后确定设定的 memory_limit > post_max_size > upload_max_filesize ...

另外说 ... 手册里面有写下面的文字 ...

Note: PHP allows shortcuts for bit values, including K (kilo), M (mega) and G (giga). PHP will do the conversions automatically if you use any of these. Be careful not to exceed the 32 bit signed integer limit (if you’re using 32bit versions) as it will cause your script to fail.

如果说上面两步都确定了还是不行的话 ... 修改 post_max_size 到小一点的值比如 1024M 这样 ...


除此之外还有个upload_max_size,也许有影响。注意看看server的log。

【热门文章】
【热门文章】