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.
Parameter | Description |
---|---|
url | URL whose parameters are to be initialised. Optional; false by default (current page). |
<? 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 ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |