<strings>
<string id="$_SESSION" value="<div id='reserved.variables.session' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.session.php'>$_SESSION</a></h1> <h1 class='refname'>$HTTP_SESSION_VARS [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_SESSION</span> -- <span class='refname'>$HTTP_SESSION_VARS [deprecated]</span> &amp;mdash; <span class='dc-title'>Session variables</span></p> </div> <a name='reserved.variables.session.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative array containing session variables available to the current script. See the <a href='http://www.php.net/manual/kr/ref.session.php' class='link'>Session functions</a> documentation for more information on how this is used. </p> <p class='simpara'> <var class='varname'>$HTTP_SESSION_VARS</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_SESSION_VARS</var> and <var class='varname'>$_SESSION</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.session.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_SESSION</var> that deprecated <var class='varname'>$HTTP_SESSION_VARS</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.session.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.session.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/function.session-start.php' class='function' rel='rdfs-seeAlso'>session_start()</a> - &amp;#xC138;&amp;#xC158; &amp;#xB370;&amp;#xC774;&amp;#xD130; &amp;#xCD08;&amp;#xAE30;&amp;#xD654;</li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_SERVER" value="<div id='reserved.variables.server' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.server.php'>$_SERVER</a></h1> <h1 class='refname'>$HTTP_SERVER_VARS [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_SERVER</span> -- <span class='refname'>$HTTP_SERVER_VARS [deprecated]</span> &amp;mdash; <span class='dc-title'>Server and execution environment information</span></p> </div> <a name='reserved.variables.server.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> <var class='varname'>$_SERVER</var> is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here. That said, a large number of these variables are accounted for in the <a href='http://hoohoo.ncsa.uiuc.edu/cgi/env.html' class='link external'>&amp;raquo; CGI 1.1 specification</a>, so you should be able to expect those. </p> <p class='simpara'> <var class='varname'>$HTTP_SERVER_VARS</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_SERVER_VARS</var> and <var class='varname'>$_SERVER</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.server.indices'></a><div class='refsect1 indices'> <h3 class='title'>&amp;#xC778;&amp;#xB371;&amp;#xC2A4;</h3> <p class='simpara'> You may or may not find any of the following elements in <var class='varname'>$_SERVER</var>. Note that few, if any, of these will be available (or indeed have any meaning) if running PHP on the <a href='http://www.php.net/manual/kr/features.commandline.php' class='link'>command line</a>. </p> <p class='para'> </p><dl> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>PHP_SELF</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The filename of the currently executing script, relative to the document root. For instance, <var class='varname'>$_SERVER['PHP_SELF']</var> in a script at the address <var class='filename'>http://example.com/test.php/foo.bar</var> would be <var class='filename'>/test.php/foo.bar</var>. The <a href='http://www.php.net/manual/kr/language.constants.predefined.php' class='link'>__FILE__</a> constant contains the full path and filename of the current (i.e. included) file. </span> <span class='simpara'> If PHP is running as a command-line processor this variable contains the script name since PHP 4.3.0. Previously it was not available. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<a href='http://www.php.net/manual/kr/reserved.variables.argv.php' class='link'>argv</a>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<a href='http://www.php.net/manual/kr/reserved.variables.argc.php' class='link'>argc</a>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contains the number of command line parameters passed to the script (if run on the command line). </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>GATEWAY_INTERFACE</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> What revision of the CGI specification the server is using; i.e. &amp;#039;<i>CGI/1.1</i>&amp;#039;. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_ADDR</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The IP address of the server under which the current script is executing. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_NAME</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_SOFTWARE</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Server identification string, given in the headers when responding to requests. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_PROTOCOL</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Name and revision of the information protocol via which the page was requested; i.e. &amp;#039;<i>HTTP/1.0</i>&amp;#039;; </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>REQUEST_METHOD</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Which request method was used to access the page; i.e. &amp;#039;<i>GET</i>&amp;#039;, &amp;#039;<i>HEAD</i>&amp;#039;, &amp;#039;<i>POST</i>&amp;#039;, &amp;#039;<i>PUT</i>&amp;#039;. </span> <blockquote><p><b class='note'>Note</b>: PHP script is terminated after sending headers (it means after producing any output without output buffering) if the request method was <i>HEAD</i>. <br /> </p></blockquote> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>REQUEST_TIME</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The timestamp of the start of the request. Available since PHP 5.1.0. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>QUERY_STRING</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The query string, if any, via which the page was accessed. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>DOCUMENT_ROOT</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The document root directory under which the current script is executing, as defined in the server&amp;#039;s configuration file. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_ACCEPT</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>Accept:</i> header from the current request, if there is one. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_ACCEPT_CHARSET</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>Accept-Charset:</i> header from the current request, if there is one. Example: &amp;#039;<i>iso-8859-1,*,utf-8</i>&amp;#039;. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_ACCEPT_ENCODING</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>Accept-Encoding:</i> header from the current request, if there is one. Example: &amp;#039;<i>gzip</i>&amp;#039;. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_ACCEPT_LANGUAGE</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>Accept-Language:</i> header from the current request, if there is one. Example: &amp;#039;<i>en</i>&amp;#039;. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_CONNECTION</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>Connection:</i> header from the current request, if there is one. Example: &amp;#039;<i>Keep-Alive</i>&amp;#039;. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_HOST</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>Host:</i> header from the current request, if there is one. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_REFERER</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify <var class='varname'>HTTP_REFERER</var> as a feature. In short, it cannot really be trusted. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTP_USER_AGENT</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contents of the <i>User-Agent:</i> header from the current request, if there is one. This is a string denoting the user agent being which is accessing the page. A typical example is: <span class='computeroutput'>Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)</span>. Among other things, you can use this value with <a href='http://www.php.net/manual/kr/function.get-browser.php' class='function'>get_browser()</a> to tailor your page&amp;#039;s output to the capabilities of the user agent. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>HTTPS</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Set to a non-empty value if the script was queried through the HTTPS protocol. </span> <blockquote><p><b class='note'>Note</b>: <span class='simpara'> Note that when using ISAPI with IIS, the value will be <i>off</i> if the request was not made through the HTTPS protocol. </span> </p></blockquote> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>REMOTE_ADDR</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The IP address from which the user is viewing the current page. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>REMOTE_HOST</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The Host name from which the user is viewing the current page. The reverse dns lookup is based off the <var class='varname'>REMOTE_ADDR</var> of the user. </span> <blockquote><p><b class='note'>Note</b>: <span class='simpara'> Your web server must be configured to create this variable. For example in Apache you&amp;#039;ll need <i>HostnameLookups On</i> inside <var class='filename'>httpd.conf</var> for it to exist. See also <a href='http://www.php.net/manual/kr/function.gethostbyaddr.php' class='function'>gethostbyaddr()</a>. </span> </p></blockquote> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>REMOTE_PORT</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The port being used on the user&amp;#039;s machine to communicate with the web server. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SCRIPT_FILENAME</var>&amp;#039;</span> </dt><dd class='listitem'> <p class='para'> The absolute pathname of the currently executing script. </p><blockquote><p><b class='note'>Note</b>: If a script is executed with the CLI, as a relative path, such as <var class='filename'>file.php</var> or <var class='filename'>../file.php</var>, <var class='varname'>$_SERVER['SCRIPT_FILENAME']</var> will contain the relative path specified by the user. <br /> </p></blockquote><p> </p> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_ADMIN</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The value given to the SERVER_ADMIN (for Apache) directive in the web server configuration file. If the script is running on a virtual host, this will be the value defined for that virtual host. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_PORT</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The port on the server machine being used by the web server for communication. For default setups, this will be &amp;#039;<i>80</i>&amp;#039;; using SSL, for instance, will change this to whatever your defined secure HTTP port is. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SERVER_SIGNATURE</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> String containing the server version and virtual host name which are added to server-generated pages, if enabled. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>PATH_TRANSLATED</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping. </span> <blockquote><p><b class='note'>Note</b>: <span class='simpara'> As of PHP 4.3.2, <span class='envar'>PATH_TRANSLATED</span> is no longer set implicitly under the Apache 2 <acronym title='Server Application Programming Interface'>SAPI</acronym> in contrast to the situation in Apache 1, where it&amp;#039;s set to the same value as the <span class='envar'>SCRIPT_FILENAME</span> server variable when it&amp;#039;s not populated by Apache. This change was made to comply with the <acronym title='Common Gateway Interface'>CGI</acronym> specification that <span class='envar'>PATH_TRANSLATED</span> should only exist if <span class='envar'>PATH_INFO</span> is defined. </span> <span class='simpara'> Apache 2 users may use <i>AcceptPathInfo = On</i> inside <var class='filename'>httpd.conf</var> to define <span class='envar'>PATH_INFO</span>. </span> </p></blockquote> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>SCRIPT_NAME</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> Contains the current script&amp;#039;s path. This is useful for pages which need to point to themselves. The <a href='http://www.php.net/manual/kr/language.constants.predefined.php' class='link'>__FILE__</a> constant contains the full path and filename of the current (i.e. included) file. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>REQUEST_URI</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> The URI which was given in order to access this page; for instance, &amp;#039;<i>/index.html</i>&amp;#039;. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>PHP_AUTH_DIGEST</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> When running under Apache as module doing Digest HTTP authentication this variable is set to the &amp;#039;Authorization&amp;#039; header sent by the client (which you should then use to make the appropriate validation). </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>PHP_AUTH_USER</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the username provided by the user. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>PHP_AUTH_PW</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> When running under Apache or IIS (ISAPI on PHP 5) as module doing HTTP authentication this variable is set to the password provided by the user. </span> </dd> <dt class='varlistentry'> <span class='term'>&amp;#039;<var class='varname'>AUTH_TYPE</var>&amp;#039;</span> </dt><dd class='listitem'> <span class='simpara'> When running under Apache as module doing HTTP authenticated this variable is set to the authentication type. </span> </dd> </dl> <p> </p> </div> <a name='reserved.variables.server.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_SERVER</var> that deprecated <var class='varname'>$HTTP_SERVER_VARS</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.server.examples'></a><div class='refsect1 examples'> <h3 class='title'>&amp;#xC608;&amp;#xC81C;</h3> <p class='para'> </p><div class='example'> <p><b>Example #1 <var class='varname'>$_SERVER</var> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #0000BB'>$_SERVER</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'SERVER_NAME'</span><span style='color: #007700'>];<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>&amp;#xC704; &amp;#xC608;&amp;#xC81C;&amp;#xC758; &amp;#xCD9C;&amp;#xB825; &amp;#xC608;&amp;#xC2DC;:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> www.example.com </pre></div> </div> </div><p> </p> </div> <a name='reserved.variables.server.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.server.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/book.filter.php' class='link'>The filter extension</a></li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_REQUEST" value="<div id='reserved.variables.request' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.request.php'>$_REQUEST</a></h1> <p class='refpurpose'><span class='refname'>$_REQUEST</span> &amp;mdash; <span class='dc-title'>HTTP Request variables</span></p> </div> <a name='reserved.variables.request.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative <a href='http://www.php.net/manual/kr/language.types.array.php' class='type array'>array</a> that by default contains the contents of <var class='varname'><a href='http://www.php.net/manual/kr/reserved.variables.get.php' class='classname'>$_GET</a></var>, <var class='varname'><a href='http://www.php.net/manual/kr/reserved.variables.post.php' class='classname'>$_POST</a></var> &amp;#xADF8;&amp;#xB9AC;&amp;#xACE0; <var class='varname'><a href='http://www.php.net/manual/kr/reserved.variables.cookies.php' class='classname'>$_COOKIE</a></var>. </p> </div> <a name='reserved.variables.request.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>5.3.0</td> <td align='left'> Introduced <a href='http://www.php.net/manual/kr/ini.core.php#ini.request-order' class='link'>request_order</a>. This directive affects the contents of <var class='varname'>$_REQUEST</var>. </td> </tr> <tr valign='middle'> <td align='left'>4.3.0</td> <td align='left'> <var class='varname'><a href='http://www.php.net/manual/kr/reserved.variables.files.php' class='classname'>$_FILES</a></var> information was removed from <var class='varname'>$_REQUEST</var>. </td> </tr> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_REQUEST</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.request.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> <blockquote><p><b class='note'>Note</b>: When running on the <a href='http://www.php.net/manual/kr/features.commandline.php' class='link'>command line </a>, this will <em class='emphasis'>not</em> include the <a href='http://www.php.net/manual/kr/reserved.variables.argv.php' class='link'>argv</a> and <a href='http://www.php.net/manual/kr/reserved.variables.argc.php' class='link'>argc</a> entries; these are present in the <var class='varname'><a href='http://www.php.net/manual/kr/reserved.variables.server.php' class='classname'>$_SERVER</a></var> <a href='http://www.php.net/manual/kr/language.types.array.php' class='type array'>array</a>. <br /> </p></blockquote> <blockquote><p><b class='note'>Note</b>: The variables in <var class='varname'>$_REQUEST</var> are provided to the script via the GET, POST, and COOKIE input mechanisms and therefore could be modified by the remote user and cannot be trusted. The presence and order of variables listed in this array is defined according to the PHP <a href='http://www.php.net/manual/kr/ini.core.php#ini.variables-order' class='link'>variables_order</a> configuration directive. <br /> </p></blockquote> </div> <a name='reserved.variables.request.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/function.import-request-variables.php' class='function' rel='rdfs-seeAlso'>import_request_variables()</a> - GET/POST/&amp;#xCFE0;&amp;#xD0A4; &amp;#xBCC0;&amp;#xC218;&amp;#xB97C; &amp;#xC804;&amp;#xC5ED;&amp;#xC73C;&amp;#xB85C; &amp;#xAC00;&amp;#xC838;&amp;#xC635;&amp;#xB2C8;&amp;#xB2E4;</li> <li class='member'><a href='http://www.php.net/manual/kr/language.variables.external.php' class='link'>Handling external variables</a></li> <li class='member'><a href='http://www.php.net/manual/kr/book.filter.php' class='link'>The filter extension</a></li> </ul> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_POST" value="<div id='reserved.variables.post' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.post.php'>$_POST</a></h1> <h1 class='refname'>$HTTP_POST_VARS [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_POST</span> -- <span class='refname'>$HTTP_POST_VARS [deprecated]</span> &amp;mdash; <span class='dc-title'>HTTP POST variables</span></p> </div> <a name='reserved.variables.post.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative array of variables passed to the current script via the HTTP POST method. </p> <p class='simpara'> <var class='varname'>$HTTP_POST_VARS</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_POST_VARS</var> and <var class='varname'>$_POST</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.post.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_POST</var> that deprecated <var class='varname'>$HTTP_POST_VARS</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.post.examples'></a><div class='refsect1 examples'> <h3 class='title'>&amp;#xC608;&amp;#xC81C;</h3> <p class='para'> </p><div class='example'> <p><b>Example #1 <var class='varname'>$_POST</var> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #DD0000'>'Hello&amp;nbsp;'&amp;nbsp;</span><span style='color: #007700'>.&amp;nbsp;</span><span style='color: #0000BB'>htmlspecialchars</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$_POST</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'name'</span><span style='color: #007700'>])&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'!'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents simpara'><p> Assuming the user POSTed name=Hannes </p></div> <div class='example-contents para'><p>&amp;#xC704; &amp;#xC608;&amp;#xC81C;&amp;#xC758; &amp;#xCD9C;&amp;#xB825; &amp;#xC608;&amp;#xC2DC;:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> Hello Hannes! </pre></div> </div> </div><p> </p> </div> <a name='reserved.variables.post.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.post.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/language.variables.external.php' class='link'>Handling external variables</a></li> <li class='member'><a href='http://www.php.net/manual/kr/book.filter.php' class='link'>The filter extension</a></li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_GET" value="<div id='reserved.variables.get' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.get.php'>$_GET</a></h1> <h1 class='refname'>$HTTP_GET_VARS [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_GET</span> -- <span class='refname'>$HTTP_GET_VARS [deprecated]</span> &amp;mdash; <span class='dc-title'>HTTP GET variables</span></p> </div> <a name='reserved.variables.get.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative array of variables passed to the current script via the URL parameters. </p> <p class='simpara'> <var class='varname'>$HTTP_GET_VARS</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_GET_VARS</var> and <var class='varname'>$_GET</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.get.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_GET</var> that deprecated <var class='varname'>$HTTP_GET_VARS</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.get.examples'></a><div class='refsect1 examples'> <h3 class='title'>&amp;#xC608;&amp;#xC81C;</h3> <p class='para'> </p><div class='example'> <p><b>Example #1 <var class='varname'>$_GET</var> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #DD0000'>'Hello&amp;nbsp;'&amp;nbsp;</span><span style='color: #007700'>.&amp;nbsp;</span><span style='color: #0000BB'>htmlspecialchars</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$_GET</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'name'</span><span style='color: #007700'>])&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'!'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents simpara'><p> Assuming the user entered http://example.com/?name=Hannes </p></div> <div class='example-contents para'><p>&amp;#xC704; &amp;#xC608;&amp;#xC81C;&amp;#xC758; &amp;#xCD9C;&amp;#xB825; &amp;#xC608;&amp;#xC2DC;:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> Hello Hannes! </pre></div> </div> </div><p> </p> </div> <a name='reserved.variables.get.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.get.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/language.variables.external.php' class='link'>Handling external variables</a></li> <li class='member'><a href='http://www.php.net/manual/kr/book.filter.php' class='link'>The filter extension</a></li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_FILES" value="<div id='reserved.variables.files' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.files.php'>$_FILES</a></h1> <h1 class='refname'>$HTTP_POST_FILES [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_FILES</span> -- <span class='refname'>$HTTP_POST_FILES [deprecated]</span> &amp;mdash; <span class='dc-title'>HTTP File Upload variables</span></p> </div> <a name='reserved.variables.files.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative <a href='http://www.php.net/manual/kr/language.types.array.php' class='type array'>array</a> of items uploaded to the current script via the HTTP POST method. </p> <p class='simpara'> <var class='varname'>$HTTP_POST_FILES</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_POST_FILES</var> and <var class='varname'>$_FILES</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.files.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_FILES</var> that deprecated <var class='varname'>$HTTP_POST_FILES</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.files.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.files.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/function.move-uploaded-file.php' class='function' rel='rdfs-seeAlso'>move_uploaded_file()</a> - Moves an uploaded file to a new location</li> <li class='member'><a href='http://www.php.net/manual/kr/features.file-upload.php' class='link'>Handling File Uploads</a></li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_ENV" value="<div id='reserved.variables.environment' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.environment.php'>$_ENV</a></h1> <h1 class='refname'>$HTTP_ENV_VARS [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_ENV</span> -- <span class='refname'>$HTTP_ENV_VARS [deprecated]</span> &amp;mdash; <span class='dc-title'>Environment variables</span></p> </div> <a name='reserved.variables.environment.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative <a href='http://www.php.net/manual/kr/language.types.array.php' class='type array'>array</a> of variables passed to the current script via the environment method. </p> <p class='simpara'> These variables are imported into PHP&amp;#039;s global namespace from the environment under which the PHP parser is running. Many are provided by the shell under which PHP is running and different systems are likely running different kinds of shells, a definitive list is impossible. Please see your shell&amp;#039;s documentation for a list of defined environment variables. </p> <p class='simpara'> Other environment variables include the CGI variables, placed there regardless of whether PHP is running as a server module or CGI processor. </p> <p class='simpara'> <var class='varname'>$HTTP_ENV_VARS</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_ENV_VARS</var> and <var class='varname'>$_ENV</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.environment.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_ENV</var> that deprecated <var class='varname'>$HTTP_ENV_VARS</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.environment.examples'></a><div class='refsect1 examples'> <h3 class='title'>&amp;#xC608;&amp;#xC81C;</h3> <p class='para'> </p><div class='example'> <p><b>Example #1 <var class='varname'>$_ENV</var> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #DD0000'>'My&amp;nbsp;username&amp;nbsp;is&amp;nbsp;'&amp;nbsp;</span><span style='color: #007700'>.</span><span style='color: #0000BB'>$_ENV</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'USER'</span><span style='color: #007700'>]&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'!'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents simpara'><p> Assuming &amp;quot;bjori&amp;quot; executes this script </p></div> <div class='example-contents para'><p>&amp;#xC704; &amp;#xC608;&amp;#xC81C;&amp;#xC758; &amp;#xCD9C;&amp;#xB825; &amp;#xC608;&amp;#xC2DC;:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> My username is bjori! </pre></div> </div> </div><p> </p> </div> <a name='reserved.variables.environment.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.environment.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/function.getenv.php' class='function' rel='rdfs-seeAlso'>getenv()</a> - &amp;#xD658;&amp;#xACBD; &amp;#xBCC0;&amp;#xC218; &amp;#xAC12;&amp;#xC744; &amp;#xC5BB;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;</li> <li class='member'><a href='http://www.php.net/manual/kr/book.filter.php' class='link'>The filter extension</a></li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$_COOKIE" value="<div id='reserved.variables.cookies' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.cookies.php'>$_COOKIE</a></h1> <h1 class='refname'>$HTTP_COOKIE_VARS [deprecated]</h1> <p class='refpurpose'><span class='refname'>$_COOKIE</span> -- <span class='refname'>$HTTP_COOKIE_VARS [deprecated]</span> &amp;mdash; <span class='dc-title'>HTTP Cookies</span></p> </div> <a name='reserved.variables.cookies.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative <a href='http://www.php.net/manual/kr/language.types.array.php' class='type array'>array</a> of variables passed to the current script via HTTP Cookies. </p> <p class='simpara'> <var class='varname'>$HTTP_COOKIE_VARS</var> contains the same initial information, but is not a <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobal</a>. (Note that <var class='varname'>$HTTP_COOKIE_VARS</var> and <var class='varname'>$_COOKIE</var> are different variables and that PHP handles them as such) </p> </div> <a name='reserved.variables.cookies.changelog'></a><div class='refsect1 changelog'> <h3 class='title'>&amp;#xBCC0;&amp;#xACBD;&amp;#xC810;</h3> <p class='para'> </p><table class='doctable informaltable'> <thead valign='middle'> <tr valign='middle'> <th>&amp;#xBC84;&amp;#xC804;</th> <th>&amp;#xC124;&amp;#xBA85;</th> </tr> </thead> <tbody valign='middle' class='tbody'> <tr valign='middle'> <td align='left'>4.1.0</td> <td align='left'> Introduced <var class='varname'>$_COOKIE</var> that deprecated <var class='varname'>$HTTP_COOKIE_VARS</var>. </td> </tr> </tbody> </table> <p> </p> </div> <a name='reserved.variables.cookies.examples'></a><div class='refsect1 examples'> <h3 class='title'>&amp;#xC608;&amp;#xC81C;</h3> <p class='para'> </p><div class='example'> <p><b>Example #1 <var class='varname'>$_COOKIE</var> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>echo&amp;nbsp;</span><span style='color: #DD0000'>'Hello&amp;nbsp;'&amp;nbsp;</span><span style='color: #007700'>.&amp;nbsp;</span><span style='color: #0000BB'>htmlspecialchars</span><span style='color: #007700'>(</span><span style='color: #0000BB'>$_COOKIE</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'name'</span><span style='color: #007700'>])&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'!'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents simpara'><p> Assuming the &amp;quot;name&amp;quot; cookie has been set earlier </p></div> <div class='example-contents para'><p>&amp;#xC704; &amp;#xC608;&amp;#xC81C;&amp;#xC758; &amp;#xCD9C;&amp;#xB825; &amp;#xC608;&amp;#xC2DC;:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> Hello Hannes! </pre></div> </div> </div><p> </p> </div> <a name='reserved.variables.cookies.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> </div> <a name='reserved.variables.cookies.seealso'></a><div class='refsect1 seealso'> <h3 class='title'>&amp;#xCC38;&amp;#xACE0;</h3> <p class='para'> </p><ul class='simplelist'> <li class='member'><a href='http://www.php.net/manual/kr/function.setcookie.php' class='function' rel='rdfs-seeAlso'>setcookie()</a> - Send a cookie</li> <li class='member'><a href='http://www.php.net/manual/kr/language.variables.external.php' class='link'>Handling external variables</a></li> <li class='member'><a href='http://www.php.net/manual/kr/book.filter.php' class='link'>The filter extension</a></li> </ul><p> </p> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
<string id="$GLOBALS" value="<div id='reserved.variables.globals' class='refentry'> <div class='refnamediv'> <h1 class='refname'><a class='info-url' href='http://www.php.net/manual/kr/reserved.variables.globals.php'>$GLOBALS</a></h1> <p class='refpurpose'><span class='refname'>$GLOBALS</span> &amp;mdash; <span class='dc-title'>References all variables available in global scope</span></p> </div> <a name='reserved.variables.globals.description'></a><div class='refsect1 description'> <h3 class='title'>&amp;#xC124;&amp;#xBA85;</h3> <p class='para'> An associative <a href='http://www.php.net/manual/kr/language.types.array.php' class='type array'>array</a> containing references to all variables which are currently defined in the global scope of the script. The variable names are the keys of the array. </p> </div> <a name='reserved.variables.globals.examples'></a><div class='refsect1 examples'> <h3 class='title'>&amp;#xC608;&amp;#xC81C;</h3> <p class='para'> </p><div class='example'> <p><b>Example #1 <var class='varname'>$GLOBALS</var> example</b></p> <div class='example-contents programlisting'> <div class='phpcode'><code><span style='color: #000000'> <span style='color: #0000BB'>&amp;lt;?php<br /></span><span style='color: #007700'>function&amp;nbsp;</span><span style='color: #0000BB'>test</span><span style='color: #007700'>()&amp;nbsp;{<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</span><span style='color: #0000BB'>$foo&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'local&amp;nbsp;variable'</span><span style='color: #007700'>;<br /><br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'$foo&amp;nbsp;in&amp;nbsp;global&amp;nbsp;scope:&amp;nbsp;'&amp;nbsp;</span><span style='color: #007700'>.&amp;nbsp;</span><span style='color: #0000BB'>$GLOBALS</span><span style='color: #007700'>[</span><span style='color: #DD0000'>'foo'</span><span style='color: #007700'>]&amp;nbsp;.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br />&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;</span><span style='color: #DD0000'>'$foo&amp;nbsp;in&amp;nbsp;current&amp;nbsp;scope:&amp;nbsp;'&amp;nbsp;</span><span style='color: #007700'>.&amp;nbsp;</span><span style='color: #0000BB'>$foo&amp;nbsp;</span><span style='color: #007700'>.&amp;nbsp;</span><span style='color: #DD0000'>'\n'</span><span style='color: #007700'>;<br />}<br /><br /></span><span style='color: #0000BB'>$foo&amp;nbsp;</span><span style='color: #007700'>=&amp;nbsp;</span><span style='color: #DD0000'>'Example&amp;nbsp;content'</span><span style='color: #007700'>;<br /></span><span style='color: #0000BB'>test</span><span style='color: #007700'>();<br /></span><span style='color: #0000BB'>?&amp;gt;</span> </span> </code></div> </div> <div class='example-contents para'><p>&amp;#xC704; &amp;#xC608;&amp;#xC81C;&amp;#xC758; &amp;#xCD9C;&amp;#xB825; &amp;#xC608;&amp;#xC2DC;:</p></div> <div class='example-contents screen'> <div class='cdata'><pre> $foo in global scope: Example content $foo in current scope: local variable </pre></div> </div> </div><p> </p> </div> <a name='reserved.variables.globals.notes'></a><div class='refsect1 notes'> <h3 class='title'>&amp;#xC8FC;&amp;#xC758;</h3> <blockquote><p><b class='note'>Note</b>: &amp;#xC774;&amp;#xB294; &amp;#039;&amp;#xC790;&amp;#xB3D9;&amp;#xC804;&amp;#xC5ED;&amp;#039; &amp;#xBCC0;&amp;#xC218;&amp;#xC785;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xC2A4;&amp;#xD06C;&amp;#xB9BD;&amp;#xD2B8;&amp;#xC758; &amp;#xBAA8;&amp;#xB4E0; &amp;#xC601;&amp;#xC5ED;&amp;#xC5D0;&amp;#xC11C; &amp;#xC0AC;&amp;#xC6A9;&amp;#xD560; &amp;#xC218; &amp;#xC788;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;. &amp;#xD568;&amp;#xC218;&amp;#xB098; &amp;#xBA54;&amp;#xC3D8;&amp;#xB4DC; &amp;#xC548;&amp;#xC5D0;&amp;#xC11C; &amp;#xC811;&amp;#xADFC;&amp;#xD558;&amp;#xAE30; &amp;#xC704;&amp;#xD574;&amp;#xC11C; <strong class='command'>global $variable;</strong>&amp;#xB97C; &amp;#xD560; &amp;#xD544;&amp;#xC694;&amp;#xAC00; &amp;#xC5C6;&amp;#xC2B5;&amp;#xB2C8;&amp;#xB2E4;.<br /></p></blockquote> <blockquote><p><b class='note'>Note</b>: <b>Variable availability</b><br /> Unlike all of the other <a href='http://www.php.net/manual/kr/language.variables.superglobals.php' class='link'>superglobals</a>, <var class='varname'>$GLOBALS</var> has essentially always been available in PHP. <br /> </p></blockquote> </div> </div><div class='copyright-info'>PHP Documentation is licensed under the <a class='copyright-url' href='http://creativecommons.org/licenses/by/3.0/legalcode'>Creative Commons  Attribution 3.0 License</a>. &copy; 2001-2009 the PHP  Documentation Group.</div> " />
</strings>

