security.magicquotes.whynot.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 59 行

HTML
59
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Why not to use Magic Quotes</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="security.magicquotes.why.html">Why use Magic Quotes</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.magicquotes.disabling.html">Disabling Magic Quotes</a></div> <div class="up"><a href="security.magicquotes.html">Magic Quotes</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="security.magicquotes.whynot" class="sect1">    <h2 class="title">Why not to use Magic Quotes</h2>    <ul class="itemizedlist">     <li class="listitem">      <span class="simpara">       Portability      </span>      <span class="simpara">       Assuming it to be on, or off, affects portability. Use       <a href="function.get-magic-quotes-gpc.html" class="function">get_magic_quotes_gpc()</a> to check for this, and code       accordingly.      </span>     </li>     <li class="listitem">      <span class="simpara">       Performance      </span>      <span class="simpara">       Because not every piece of escaped data is inserted into a        database, there is a performance loss for escaping all this data.        Simply calling on the escaping functions (like        <a href="function.addslashes.html" class="function">addslashes()</a>) at runtime is more efficient.      </span>      <span class="simpara">       Although <var class="filename">php.ini-dist</var> enables these directives         by default, <var class="filename">php.ini-recommended</var> disables it.       This recommendation is mainly due to performance reasons.      </span>     </li>     <li class="listitem">      <span class="simpara">       Inconvenience      </span>      <span class="simpara">       Because not all data needs escaping, it&#039;s often annoying to see escaped       data where it shouldn&#039;t be. For example, emailing from a form, and       seeing a bunch of \&#039; within the email. To fix, this may require        excessive use of <a href="function.stripslashes.html" class="function">stripslashes()</a>.      </span>     </li>    </ul>   </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="security.magicquotes.why.html">Why use Magic Quotes</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.magicquotes.disabling.html">Disabling Magic Quotes</a></div> <div class="up"><a href="security.magicquotes.html">Magic Quotes</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?