Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 11043

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>HTTP Request variables</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="reserved.variables.files.html">$_FILES</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="reserved.variables.session.html">$_SESSION</a></div>
 <div class="up"><a href="reserved.variables.html">Predefined Variables</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="reserved.variables.request" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">$_REQUEST</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5)</p><p class="refpurpose"><span class="refname">$_REQUEST</span> &mdash; <span class="dc-title">HTTP Request variables</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-reserved.variables.request-description">
  <h3 class="title">Description</h3>
  <p class="para">
   An associative <span class="type"><a href="language.types.array.html" class="type array">array</a></span> that by default contains the contents of
   <var class="varname"><var class="varname"><a href="reserved.variables.get.html" class="classname">$_GET</a></var></var>,
   <var class="varname"><var class="varname"><a href="reserved.variables.post.html" class="classname">$_POST</a></var></var> and
   <var class="varname"><var class="varname"><a href="reserved.variables.cookies.html" class="classname">$_COOKIE</a></var></var>.
  </p>
 </div>

 

 <div class="refsect1 changelog" id="refsect1-reserved.variables.request-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.3.0</td>
       <td>
        Introduced <a href="ini.core.html#ini.request-order" class="link">request_order</a>.
        This directive affects the contents of <var class="varname"><var class="varname">$_REQUEST</var></var>.
       </td>
      </tr>

      <tr>
       <td>4.3.0</td>
       <td>
        <var class="varname"><var class="varname"><a href="reserved.variables.files.html" class="classname">$_FILES</a></var></var> information
        was removed from <var class="varname"><var class="varname">$_REQUEST</var></var>.
       </td>
      </tr>

      <tr>
       <td>4.1.0</td>
       <td>
        Introduced <var class="varname"><var class="varname">$_REQUEST</var></var>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
 <div class="refsect1 notes" id="refsect1-reserved.variables.request-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">This is a &#039;superglobal&#039;, or
automatic global, variable. This simply means that it is available in
all scopes throughout a script. There is no need to do
<strong class="command">global $variable;</strong> to access it within functions or methods.
</p></p></blockquote>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    When running on the <a href="features.commandline.html" class="link">command line
    </a>, this will <em class="emphasis">not</em> include the 
    <a href="reserved.variables.argv.html" class="link">argv</a> and 
    <a href="reserved.variables.argc.html" class="link">argc</a> entries; these are 
    present in the <var class="varname"><var class="varname"><a href="reserved.variables.server.html" class="classname">$_SERVER</a></var></var>
    <span class="type"><a href="language.types.array.html" class="type array">array</a></span>.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    The variables in <var class="varname"><var class="varname">$_REQUEST</var></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="ini.core.html#ini.variables-order" class="link">variables_order</a>
    configuration directive.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-reserved.variables.request-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"> <span class="function"><a href="function.import-request-variables.html" class="function" rel="rdfs-seeAlso">import_request_variables()</a> - Import GET/POST/Cookie variables into the global scope</span></li>
   <li class="member"><a href="language.variables.external.html" class="link">Handling external variables</a></li>
   <li class="member"><a href="book.filter.html" class="link">The filter extension</a></li>
  </ul>
 </div>

 
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="reserved.variables.files.html">$_FILES</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="reserved.variables.session.html">$_SESSION</a></div>
 <div class="up"><a href="reserved.variables.html">Predefined Variables</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>