当前位置:Gxlcms > PHP教程 > PHP闃叉sql娉ㄥ叆鍑芥暟浠g爜_PHP鏁欑▼|甯涔嬪

PHP闃叉sql娉ㄥ叆鍑芥暟浠g爜_PHP鏁欑▼|甯涔嬪

时间:2021-07-01 10:21:17 帮助过:3人阅读

PHP 闃叉sql娉ㄥ叆鍑芥暟浠g爜锛?br>
  1. $magic_quotes_gpc = get_magic_quotes_gpc();
  2. @extract(daddslashes($_COOKIE));
  3. @extract(daddslashes($_POST));
  4. @extract(daddslashes($_GET));
  5. if(!$magic_quotes_gpc) {
  6. $_FILES = daddslashes($_FILES);
  7. }
  8. function daddslashes($string, $force = 0) {
  9. if(!$GLOBALS[magic_quotes_gpc] || $force) {
  10. if(is_array($string)) {
  11. foreach($string as $key => $val) {
  12. $string[$key] = daddslashes($val, $force);
  13. }
  14. } else {
  15. $string = addslashes($string);
  16. }
  17. }
  18. return $string;
  19. }
  20. ?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/486016.htmlTechArticlePHP 闃叉sql娉ㄥ叆鍑芥暟浠g爜锛??php $magic_quotes_gpc = get_magic_quotes_gpc(); @extract(daddslashes($_COOKIE)); @extract(daddslashes($_POST)); @extract(daddslashes($_GET)); if(...

人气教程排行