<!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>Predefined Variables</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="language.references.spot.html">Spotting References</a></div> <div class="next" style="text-align: right; float: right;"><a href="language.variables.superglobals.html">Superglobals</a></div> <div class="up"><a href="langref.html">Language Reference</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="reserved.variables" class="reference"> <h1 class="title">Predefined Variables</h1> <div class="partintro"> <p class="para"> PHP provides a large number of predefined variables to all scripts. The variables represent everything from <a href="language.variables.external.html" class="link">external variables</a> to built-in environment variables, last error messages to last retrieved headers. </p> <p class="para"> See also the FAQ titled "<a href="faq.using.html#faq.register-globals" class="link">How does register_globals affect me?</a>" </p> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="language.variables.superglobals.html">Superglobals</a> — Superglobals are built-in variables that are always available in all scopes</li><li><a href="reserved.variables.globals.html">$GLOBALS</a> — References all variables available in global scope</li><li><a href="reserved.variables.server.html">$_SERVER</a> — Server and execution environment information</li><li><a href="reserved.variables.get.html">$_GET</a> — HTTP GET variables</li><li><a href="reserved.variables.post.html">$_POST</a> — HTTP POST variables</li><li><a href="reserved.variables.files.html">$_FILES</a> — HTTP File Upload variables</li><li><a href="reserved.variables.request.html">$_REQUEST</a> — HTTP Request variables</li><li><a href="reserved.variables.session.html">$_SESSION</a> — Session variables</li><li><a href="reserved.variables.environment.html">$_ENV</a> — Environment variables</li><li><a href="reserved.variables.cookies.html">$_COOKIE</a> — HTTP Cookies</li><li><a href="reserved.variables.phperrormsg.html">$php_errormsg</a> — The previous error message</li><li><a href="reserved.variables.httprawpostdata.html">$HTTP_RAW_POST_DATA</a> — Raw POST data</li><li><a href="reserved.variables.httpresponseheader.html">$http_response_header</a> — HTTP response headers</li><li><a href="reserved.variables.argc.html">$argc</a> — The number of arguments passed to script</li><li><a href="reserved.variables.argv.html">$argv</a> — Array of arguments passed to script</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="language.references.spot.html">Spotting References</a></div> <div class="next" style="text-align: right; float: right;"><a href="language.variables.superglobals.html">Superglobals</a></div> <div class="up"><a href="langref.html">Language Reference</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>