why is $_REQUEST empty

前端 未结 2 384
遥遥无期
遥遥无期 2020-11-29 11:10

I have Ubuntu 10.10 with apache2, php 5.3.3-1 and mysql 5.1.

I am passing some values to a page via URL. On that page, if I do print_r($_GET), then I se

相关标签:
2条回答
  • 2020-11-29 11:40

    Also try check "request_order" option in php.ini:

    ; This directive determines which super global data (G,P,C,E & S) should
    ; be registered into the super global array REQUEST. If so, it also determines
    ; the order in which that data is registered. The values for this directive are
    ; specified in the same manner as the variables_order directive, EXCEPT one.
    ; Leaving this value empty will cause PHP to use the value set in the
    ; variables_order directive. It does not mean it will leave the super globals
    ; array REQUEST empty.
    ; Default Value: None
    ; Development Value: "GP"
    ; Production Value: "GP"
    ; http://php.net/request-order
    request_order = "GP"
    
    0 讨论(0)
  • 2020-11-29 11:42

    if your post body larger than post_max_size or upload_max_filesize which in the php.ini may be cause $_POST and $_REQUEST empty too.

    0 讨论(0)
提交回复
热议问题