ajax post request的内容长度是99299
任何更新和插入查询只产生66行!
Nginx + php-fpm
nginx.conf
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
的php.ini
post_max_size = 8G
memory_limit = 512M
upload_max_filesize = 2G (dunno need that info but ok)
答案 0 :(得分:0)
var aja = $.ajax({
async: true,
url: host,
type: 'POST',
data: {elems: arrayOfAssociativeArrays},
dataType: 'html'
});
因此,如果像关联数组一样发送数据需要增加php的值。 max_input_vars 所以,在 php.ini
中max_input_vars = 1000
到
max_input_vars = 5000000
;Dunno if 0 is unlimited