Home > Backend Development > PHP Tutorial > PHP SQL Server

PHP SQL Server

WBOY
Release: 2016-07-13 17:42:57
Original
1184 people have browsed it

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(...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template