Function __global->get_self_url_easy

Definitions

sources/urls.php

  • Get a well formed URL equivalent to the current URL. Reads direct from the environment and does no clever mapping at all. This function should rarely be used.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$script_name_if_cli boolean False N/A N/A Return the script name instead of a URL, if running on the CLI. If this is set to false it will return the base URL instead.

Return

  • The URL
  • Type: URLPATH
  • Set: N/A
  • Range: N/A