私はapache2、php 5.3.3-1とmysql 5.1を使ってUbuntu 10.10を持っています。
私はいくつかの値をURLのページに渡しています。そのページでprint_r($ _ GET)を実行すると配列の内容が表示されますが、print_r($ _ REQUEST)を実行すると配列は空です。これはどんなアイディアですか?
ありがとうございました。 php.iniであまりにも$ _POSTや$ _REQUEST空原因である可能性がありますどのpost_max_sizeのかをupload_max_filesizeよりもあなたのポスト本体が大きくなる場合
; 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"
これは古い問題です。あなたは 'var_dump($ GLOBALS ['_ REQUEST']);'を試しましたか? – Wh1T3h4Ck5
はい$ GLOBALS ['_ REQUEST']も空です – Hawkseye
** php.ini **の 'register_long_arrays'と' auto_globals_jit'をチェックしてください。 php.iniを変更した後でサーバを再起動すると、両方の機能を無効にしても動作することがあります。そこにはどのような価値がありますか?また、@ PaulPの解答を見てください。 – Wh1T3h4Ck5