2016-04-08 12 views
2

Ben PHP 5.6 den PHP 7.Ben 7 php için yükseltilmiş ve süper küresel talebi boş

güncellendi Ben döner o ayarlanmadığını bir hata yapmak her $_REQUEST['some_var'] ...

o normaldir $_REQUEST boş mu?

Örnek:

echo $_REQUEST['login_ID'] 

döner

Uyarı: Undefined index: login_id

+0

http://php.net/manual/en/ini.core.php#ini.request-order

, sen tam hata mesasage ile tam sorunu gösteren bir SSCCE gönderebilir. http://sscce.org/ –

+0

Düzenli bir örnekle gönderiyi düzenledim –

cevap

4

yılında request_order için php.ini dosyayı kontrol edin. Olası doğru ayarlanmamış. Bunun yerine "Böyle kod şey" nin

; 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

Merhaba benim durumumda request_order = "GPC" (C Çerezler için) teşekkürler;) –