Gen. partnerAlgotech

PHP function import_request_variables()

Import GET/POST/Cookie variables into the global scope

|
September 11, 2019

Availability in versions: PHP 4.1.0

Import GET/POST/Cookie variables into the global scope

Parameters

Parameter Data type Default value Note
$types string not Using the types parameter, you can specify which request variables to import. You can use 'G', 'P' and 'C' characters respectively for GET, POST and Cookie. These characters are not case sensitive, so you can also use any combination of 'g', 'p' and 'c'. POST includes the POST uploaded file information.
$prefix string null Variable name prefix, prepended before all variable's name imported into the global scope. So if you have a GET value named "userid", and provide a prefix "pref_", then you'll get a global variable named $pref_userid.

Return values

bool

Returns true on success, otherwise false on failure.

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.