Bitrix Site Manager

InitURLParam

string
InitURLParam(
 mixed url = false
)

The function InitURLParam initialises variables and arrays $_GET, $HTTP_GET_VARS, $_REQUEST, $GLOBALS with parameters passed in 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.

Parameters

ParameterDescription
url URL whose parameters are to be initialised.
Optional; false by default (current page).

Example



<?
InitURLParam("/en/index.php?ID=2&A=123");
// initialise$ID=2 and $A=123
// and the corresponding keys of arrays $_GET, $HTTP_GET_VARS, $_REQUEST, $GLOBALS
?>