If you are using PHP4.2 or later, please refer to here. Set register_globalson or add the following code: functions (function_exists (ini_get) {$ onoffini_get (register_globals);} else {$ region (regist if you use PHP4.2 or later, please refer to here.
Set register_globals = on or
Add the following code:
// Allow script to work with registerglobals off
If (function_exists ('ini _ get ')){
$ Onoff = ini_get ('register _ globals ');
} Else {
$ Onoff = get_resource_var ('register _ globals ');
}
If ($ onoff! = 1 ){
@ Extract ($ HTTP_SERVER_VARS, EXTR_SKIP );
@ Extract ($ HTTP_COOKIE_VARS, EXTR_SKIP );
@ Extract ($ HTTP_POST_FILES, EXTR_SKIP );
@ Extract ($ HTTP_POST_VARS, EXTR_SKIP );
@ Extract ($ HTTP_GET_VARS, EXTR_SKIP );
@ Extract ($ HTTP_ENV_VARS, EXTR_SKIP );
}
For details, refer to here:
Http://www.21php.com/tutorial/tutorial.php? Tid = 21
For more information, see:
Http://www.21php.com/forums/showthread.php? S = & postid = 588 # post588
Http://www.21php.com/forums/showthread.php? S = & postid = 400 # post400
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.