<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Gets the current active configuration setting of magic_quotes_runtime</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.get-magic-quotes-gpc.html">get_magic_quotes_gpc</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.get-required-files.html">get_required_files</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.get-magic-quotes-runtime" class="refentry"> <div class="refnamediv"> <h1 class="refname">get_magic_quotes_runtime</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">get_magic_quotes_runtime</span> — <span class="dc-title">Gets the current active configuration setting of magic_quotes_runtime</span></p> </div> <div class="refsect1 description" id="refsect1-function.get-magic-quotes-runtime-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>get_magic_quotes_runtime</strong></span> ( <span class="methodparam">void</span> )</div> <p class="simpara"> Returns the current active configuration setting of <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a>. </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.get-magic-quotes-runtime-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns 0 if magic_quotes_runtime is off, 1 otherwise. Or always returns <strong><code>FALSE</code></strong> as of PHP 5.4.0. </p> </div> <div class="refsect1 changelog" id="refsect1-function.get-magic-quotes-runtime-changelog"> <h3 class="title">Changelog</h3> <p class="para"> <table class="doctable informaltable"> <thead> <tr> <th>Version</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>5.4.0</td> <td> Always returns <strong><code>FALSE</code></strong> because the magic quotes feature was removed from PHP. </td> </tr> </tbody> </table> </p> </div> <div class="refsect1 examples" id="refsect1-function.get-magic-quotes-runtime-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-492"> <p><strong>Example #1 <span class="function"><strong>get_magic_quotes_runtime()</strong></span> example</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">// Check if magic_quotes_runtime is active<br /></span><span style="color: #007700">if(</span><span style="color: #0000BB">get_magic_quotes_runtime</span><span style="color: #007700">())<br />{<br /> </span><span style="color: #FF8000">// Deactivate<br /> </span><span style="color: #0000BB">set_magic_quotes_runtime</span><span style="color: #007700">(</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-function.get-magic-quotes-runtime-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.get-magic-quotes-gpc.html" class="function" rel="rdfs-seeAlso">get_magic_quotes_gpc()</a> - Gets the current configuration setting of magic_quotes_gpc</span></li> <li class="member"> <span class="function"><a href="function.set-magic-quotes-runtime.html" class="function" rel="rdfs-seeAlso">set_magic_quotes_runtime()</a> - Sets the current active configuration setting of magic_quotes_runtime</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.get-magic-quotes-gpc.html">get_magic_quotes_gpc</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.get-required-files.html">get_required_files</a></div> <div class="up"><a href="ref.info.html">PHP Options/Info Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>