php - html表单在较多数据情况下,POST数据接收不到
阿神
阿神 2017-04-10 14:25:13
[PHP讨论组]

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

阿神
阿神

闭关修行中......

全部回复(2)
伊谢尔伦

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

<?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 这样 ...

PHP中文网

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号