drupal_current_script_url
function drupal_current_script_url
drupal_current_script_url($query = array())
Returns the URL of the current script, with modified query parameters.
This function can be called by low-level scripts (such as install.php and update.php) and returns the URL of the current script. Existing query parameters are preserved by default, but new ones can optionally be merged in.
This function is used when the script must maintain certain query parameters over multiple page requests in order to work correctly. I