downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/reserved.variables.request.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/reserved.variables.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'reserved.variables.request.php',
   
1 => '$_REQUEST',
  ),
 
'up' =>
  array (
   
0 => 'reserved.variables.php',
   
1 => 'Predefined Variables',
  ),
 
'prev' =>
  array (
   
0 => 'reserved.variables.files.php',
   
1 => '$_FILES',
  ),
 
'next' =>
  array (
   
0 => 'reserved.variables.session.php',
   
1 => '$_SESSION',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="reserved.variables.request" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">$_REQUEST</h1>
  <p class="refpurpose"><span class="refname">$_REQUEST</span> &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">Description</h3>
  <p class="para">
   An associative <a href="language.types.array.php" class="type array">array</a> that by default contains the contents of
   <var class="varname"><a href="reserved.variables.get.php" class="classname">$_GET</a></var>,
   <var class="varname"><a href="reserved.variables.post.php" class="classname">$_POST</a></var> and
   <var class="varname"><a href="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">Changelog</h3>
  <p class="para">
   </p><table class="doctable informaltable">
   
     <thead valign="middle">
      <tr valign="middle">
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody valign="middle" class="tbody">
      <tr valign="middle">
       <td align="left">5.3.0</td>
       <td align="left">
        Introduced <a href="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="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">Notes</h3>
  <blockquote><p><b class="note">Note</b>: 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.
<br /></p></blockquote>
  <blockquote><p><b class="note">Note</b>:
  
    When running on the <a href="features.commandline.php" class="link">command line
    </a>, this will <em class="emphasis">not</em> include the
    <a href="reserved.variables.argv.php" class="link">argv</a> and
    <a href="reserved.variables.argc.php" class="link">argc</a> entries; these are
    present in the <var class="varname"><a href="reserved.variables.server.php" class="classname">$_SERVER</a></var>
    <a href="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="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">See Also</h3>
  <ul class="simplelist">
   <li class="member"><a href="function.import-request-variables.php" class="function" rel="rdfs-seeAlso">import_request_variables()</a> - Import GET/POST/Cookie variables into the global scope</li>
   <li class="member"><a href="language.variables.external.php" class="link">Handling external variables</a></li>
   <li class="member"><a href="book.filter.php" class="link">The filter extension</a></li>
  </ul>
 </div>

 
</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites