Minor changes, see also extract and predefined vars, and added to the example.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@81321 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-05-06 01:52:29 +00:00
parent bc807467fb
commit 6972caddf8

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/var.xml, last change in rev 1.34 -->
<refentry id="function.import-request-variables">
<refnamediv>
@ -37,14 +37,21 @@
a prefix "pref_", then you'll get a global variable named
$pref_userid.
</simpara>
<simpara>
If you're interested in importing other variables
into the global scope, such as SERVER, consider using
<function>extract</function>.
</simpara>
<note>
<para>
Although the <parameter>prefix</parameter> argument is
optional, you will get a notice level error, if you
specify no prefix, or specify an empty string as a
Although the <parameter>prefix</parameter> parameter is
optional, you will get an
<link linkend="internal.e-notice">E_NOTICE</link> level error if
you specify no prefix, or specify an empty string as a
prefix. This is a possible security hazard. Notice
level errors are not displayed using the default
error reporting level.
<link linkend="ini.error-reporting">error reporting</link>
level.
</para>
</note>
<informalexample>
@ -53,12 +60,15 @@
// This will import GET and POST vars
// with an "rvar_" prefix
import_request_variables("gP", "rvar_");
print $rvar_foo;
]]>
</programlisting>
</informalexample>
<simpara>
See also <link linkend="ini.register-globals">register_globals</link>
and <link linkend="ini.track-vars">track_vars</link>.
See also <link linkend="ini.register-globals">register_globals</link>,
<link linkend="language.variables.predefined">Predefined Variables</link>
and <function>extract</function>.
</simpara>
</refsect1>
</refentry>