InitURLParam
string InitURLParam( mixed url = false );
The function initializes variables and arrays $_GET, $HTTP_GET_VARS, $_REQUEST, $GLOBALS with parameters passed in the url.
Note. This function is commonly used in the 404 error handler if variables passed on URL are required. Such handlers are used to develop the 404 services, allowing to create addressed which are more friendly to search engines.
Function parameters
Parameter | Description |
---|---|
url | The URL, which parameters are to be initialized. Optional parameter; false by default (current page). |
Examples of use
<? InitURLParam("/ru/index.php?ID=2&A=123"); // $ID=2 и $A=123 variables initialized // and the corresponding keys of arrays: $_GET, $HTTP_GET_VARS, $_REQUEST, $GLOBALS ?>
© «Bitrix24», 2001-2024