// 防止变量覆盖 foreach($_REQUEST as $_k => $_v){ if(strlen($_k) > 0 && preg_match('/^(cfg_|GLOBALS)/i',$_k)){ exit('Request var not allow!'); } }