cvs: phpdoc /en/reference/var/functions import-request-variables.xml

From: Date: Mon, 06 May 2002 01:52:30 +0000
Subject: cvs: phpdoc /en/reference/var/functions import-request-variables.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969345292@lists.php.net to get a copy of this message
philip Sun May 5 21:52:30 2002 EDT Modified files: /phpdoc/en/reference/var/functions import-request-variables.xml Log: Minor changes, see also extract and predefined vars, and added to the example. Index: phpdoc/en/reference/var/functions/import-request-variables.xml diff -u phpdoc/en/reference/var/functions/import-request-variables.xml:1.5 phpdoc/en/reference/var/functions/import-request-variables.xml:1.6 --- phpdoc/en/reference/var/functions/import-request-variables.xml:1.5 Sun May 5 08:20:31 2002 +++ phpdoc/en/reference/var/functions/import-request-variables.xml Sun May 5 21:52:29 2002 @@ -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>

« previous php.doc (#969345292) next »