长的查询字符串变量缺失 [英] Long query string variable missing

查看:178
本文介绍了长的查询字符串变量缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个pretty长的查询字符串变量(价值约600字),我试图从PHP脚本到达。长一个不是在 $ present _ REQUEST $ _ GET 但较小的值长度是另一个变量。我已经剃掉了它的一些测试并开始准备,如果值是549个字符以上的丢失。

I've got a pretty long query string variable (value is approximately 600 chars) that I'm trying to reach from a PHP script. The long one is not present in $_REQUEST or $_GET but another variable with shorter value length is. I've shaved off some of it to test and it starts going missing when the value is at 549 chars or more.

幸运的是,长变量是 $ present _ SERVER [QUERY_STRING] 所以现在我只是拿起它的存在,但很好奇到如果这是一个服务器设置(Apache 2的),或者一些与我的PHP安装(5.2.17)或脚本?

Fortunately the long variable is present in $_SERVER["QUERY_STRING"] so for now I'm just picking it up from there, but was curious as to if this is a server setting (Apache 2) or something with my PHP setup (5.2.17) or script?

BTW,查询字符串本身是不是我控制所以很遗憾我不能改变如何工作的,为前。通过邮寄。

BTW, the query string itself is not something I control so unfortunately I can't change how that works, for ex. sending via POST.

推荐答案

也许你有一个 hardend /了Suhosin 版本的PHP。它提供了配置指令来限制输入参数的名称和值的长度。

Maybe you have a hardend/suhosin version of php. It provides configuration directives to limit the length of names and values for input parameters.

suhosin.get.max_name_length



    Type: Integer
    Default: 64


定义的变量名称为通过URL注册变量的最大长度。对于数组变量这是在指数前的名称

Defines the maximum length of variable names for variables registered through the URL. For array variables this is the name in front of the indices.

suhosin.get.max_totalname_length



    Type: Integer
    Default: 256


通过URL注册时定义的总变量名的最大长度。对于数组变量,这包括所有指数。

Defines the maximum length of the total variable name when registered through the URL. For array variables this includes all indices.

suhosin.get.max_value_length



    Type: Integer
    Default: 512


定义在通过URL注册变量的最大长度。

Defines the maximum length of a variable that is registered through the URL.

这篇关于长的查询字符串变量缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆