为什么_REQUEST $空 [英] why is $_REQUEST empty
本文介绍了为什么_REQUEST $空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Ubuntu 10.10与Apache2的,PHP 5.3.3-1和MySQL 5.1。
I have Ubuntu 10.10 with apache2, php 5.3.3-1 and mysql 5.1.
我传递一些值到一个页面的URL。在该页面中,如果我做的print_r($ _ GET)我看到数组的内容,但如果我做的print_r($ _ REQUEST)数组为空。任何想法ÿ这可能是?
I am passing some values to a page in url. On that page if i do print_r($_GET) i see the array contents but if i do print_r($_REQUEST) the array is empty. Any ideas y this could be?
感谢。
推荐答案
也可以尝试检查的request_order在php.ini 选项:
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"
这篇关于为什么_REQUEST $空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文