Почему $_REQUEST пуст

У меня есть Ubuntu 10.10 с apache2, php 5.3.3-1 и mysql 5.1.

Я передаю некоторые значения на страницу через URL. На этой странице, если я print_r($_GET), я увижу содержимое массива. Но если я сделаю print_r($_REQUEST) массив будет пустым. Есть идеи, почему это может быть?

Ответы

Ответ 1

Также попробуйте проверить "request_order" в 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"

Ответ 2

если ваше тело сообщения больше, чем post_max_size или upload_max_filesize, которое в php.ini может также вызывать $_POST и $_REQUEST.