什么是最大发布和获取变量限制? 我在ajax中调用一个页面,它继续执行失败功能
$.ajax("data_valid.php?duplicateaccountname=a")
.done(function(data) {
alert(data+"data");
})
.fail(function() {
alert("error");
dup = "error";
});
但这是有效的
$.ajax("data_valid.php?dup=a")
.done(function(data) {
alert(data+"data");
})
.fail(function() {
alert("error");
dup = "error";
});
是否有任何变量名称限制?
答案 0 :(得分:4)
<?php phpinfo(); ?>
post_max_size
,max_get_size
你可能正在使用suhosin补丁,它的配置中有自己的最大查询字符串/ post / get / .....变量。
的php.ini:
post_max_size = 8M #8Mb is 8000000 bytes, 1 byte = 1 ascii character
suhosin.ini:
;suhosin.get.max_array_depth = 50
;suhosin.get.max_array_index_length = 64
;suhosin.get.max_name_length = 64
;suhosin.get.max_totalname_length = 256
;suhosin.get.max_value_length = 128000
;suhosin.get.max_vars = 100
;suhosin.post.max_array_depth = 100
;suhosin.post.max_array_index_length = 64
;suhosin.post.max_name_length = 64
;suhosin.post.max_totalname_length = 256
;suhosin.post.max_value_length = 1000000
;suhosin.post.max_vars = 1000
;suhosin.request.max_array_depth = 100
;suhosin.request.max_array_index_length = 64
;suhosin.request.max_totalname_length = 256
;suhosin.request.max_value_length = 1000000
;suhosin.request.max_vars = 1000
;suhosin.request.max_varname_length = 64
;suhosin.upload.max_uploads = 25
;suhosin.session.max_id_length = 128
答案 1 :(得分:-1)