Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 0afeee9cca140e167a996902b9a677c5 > files > 740

php-manual-en-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>get_magic_quotes_gpc</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="PHP Manual"
HREF="index.html"><LINK
REL="UP"
TITLE="PHP Options&Information"
HREF="ref.info.html"><LINK
REL="PREVIOUS"
TITLE="get_loaded_extensions"
HREF="function.get-loaded-extensions.html"><LINK
REL="NEXT"
TITLE="get_magic_quotes_runtime"
HREF="function.get-magic-quotes-runtime.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.get-loaded-extensions.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.get-magic-quotes-runtime.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.get-magic-quotes-gpc"
></A
>get_magic_quotes_gpc</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN73716"
></A
><P
>    (PHP 3&#62;= 3.0.6, PHP 4 )</P
>get_magic_quotes_gpc&nbsp;--&nbsp;
     Gets the current active configuration setting of magic quotes gpc
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN73719"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>get_magic_quotes_gpc</B
> ( void)<BR
></BR
><P
>&#13;     Returns the current active configuration setting of <A
HREF="ref.info.html#ini.magic-quotes-gpc"
>magic_quotes_gpc</A
> (0 for
     off, 1 for on).
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
      If the directive <A
HREF="ref.sybase.html#ini.magic-quotes-sybase"
>&#13;      magic_quotes_sybase</A
> is ON it will completely 
      override <TT
CLASS="parameter"
><I
>magic_quotes_gpc</I
></TT
>.  So even
      when <B
CLASS="function"
>get_magic_quotes()</B
> returns
      <TT
CLASS="constant"
><B
>TRUE</B
></TT
> neither double quotes, backslashes or NUL's will
      be escaped.  Only single quotes will be escaped. In this
      case they'll look like: <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>''</I
></SPAN
>
     </P
></BLOCKQUOTE
></DIV
><P
>&#13;     Keep in mind that <A
HREF="ref.info.html#ini.magic-quotes-gpc"
>&#13;     magic_quotes_gpc</A
> can not be set at runtime.
    </P
><P
>&#13;     See also <A
HREF="function.addslashes.html"
><B
CLASS="function"
>addslashes()</B
></A
>, <B
CLASS="function"
>&#13;     stripslashes()</B
>, <B
CLASS="function"
>&#13;     get_magic_quotes_runtime()</B
>, and 
     <A
HREF="function.ini-get.html"
><B
CLASS="function"
>ini_get()</B
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.get-loaded-extensions.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.get-magic-quotes-runtime.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>get_loaded_extensions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.info.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>get_magic_quotes_runtime</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>