PHP帖子的最大大小? [英] max size of a php post?
问题描述
是否可以将POST请求限制为大小?我有一个很大的过程要缓存输出.基本上,由于特定项目的增长,查询数量的增加以及响应时间的失控,我想在缓存中存储大量的html表.
Could it be that a POST request is limited to size? I have a large procedure I want to cache the output from. Basically I want to store a lare html-table in cache because of the growth a particulary project, the number of queries and thereby the responsetime is getting out of hand.
现在我要发送一个大的输出,该输出是通过一个ajax调用检索的,在另一个ajax调用中(第一个完成后),但是我只得到了一小部分数据.我认为我的ajaxfunction是正确的,因为存储的输出始终是相同的(以字符为单位).但是我在缓存中缺少大约90%的输出...
Now i'm sending the large output which is retrieved by an ajax-call, in another ajax-call (after the first one completes), but I only get a small piece of the data back. I think my ajaxfunction is correct because the stored output is always the same (in characters). But I'm missing about 90% of the output in the cache...
推荐答案
默认情况下,POST方法的最大大小为8 Mb(可以通过在php.ini文件中设置post_max_size进行更改).
there is an 8 Mb max size for the POST method, by default (can be changed by setting the post_max_size in the php.ini file).
是否可以将POST请求限制为大小?"
是的,有一个PHP设置: post_max_size
Yes, there is a PHP setting: post_max_size
这篇关于PHP帖子的最大大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!