Home > Backend Development > PHP Tutorial > html表单在较多数据情况下,POST数据接收不到

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

WBOY
Release: 2016-06-06 20:50:41
Original
1170 people have browsed it

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

回复内容:

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

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

<?php echo ini_get( 'post_max_size' );
Copy after login

然后确定设定的 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。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template