The import_request_variables() function imports GET/POST/Cookie variables into the global scope. This function is no longer supported in the latest version of PHP.
The import_request_variables() function imports GET/POST/Cookie variables into the global scope. This function is useful if you disable register_globals but still want to use some global variables.
Version requirements: PHP 4 >= 4.1.0, PHP 5 < 5.4.0
bool import_request_variables ( string $types [, string $prefix ] )
Parameter description:
$types : Specify the variables that need to be imported. You can use the letters G, P, and C to represent GET, POST, and Cookie respectively. These letters are not case-sensitive, so you can use any combination of g, p, and c. POST contains file information uploaded through the POST method. Note the order of these letters. When using gp, the POST variable will overwrite the GET variable with the same name. Any letters outside of GPC will be ignored.
$prefix : The prefix of the variable name, placed before all variables imported into the global scope. So if you have a GET variable named userid and provide pref_ as a prefix, you will get a global variable named $pref_userid. Although the prefix parameter is optional, if you do not specify a prefix, or specify an empty string as a prefix, you will get an E_NOTICE level error.
none.
<?php//GET and POST variables will be imported here//Use codecto_ as the prefix import_request_variables("gP", "codercto_"); echo$codercto_foo;?>