Php ApacheWebServer删除大文本POST变量
我试图发布一个大的输入类型文本,但在目标脚本上它显示POST变量不存在。我已将php.ini设置更改为以下设置,但仍然无效Php ApacheWebServer删除大文本POST变量,php,apache,http-post,webmin,Php,Apache,Http Post,Webmin,我试图发布一个大的输入类型文本,但在目标脚本上它显示POST变量不存在。我已将php.ini设置更改为以下设置,但仍然无效 ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; ; Maximum execution time of each script, in seconds ; http://php.net/max-execution-time ; Note: This directive is hardcoded to
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 99999
; Maximum amount of time each script may spend parsing request data. Its a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.
; Note: This directive is hardcoded to -1 for the CLI SAPI
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 4800
; Maximum input variable nesting level
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 256
; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 10000
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 2048M
Apache警告日志中出现以下错误:
警报-超过配置的请求变量值长度限制-丢弃变量
如果我是var_dump:
var\u dump($file=file\u get\u contents($php://input'));
我可以看到所需的post变量
任何帮助都将不胜感激。您可以在.htaccess中尝试此功能
php_value post_max_size 128M
这将最大post大小增加到128MB
此外,在php.ini中,“max_input_vars”被注释掉。启用它并尝试增加值。您可以在.htaccess中尝试此操作
php_value post_max_size 128M
这将最大post大小增加到128MB
此外,在php.ini中,“max_input_vars”被注释掉。启用它并尝试增加值