Function __global->get_request_hostname

Definitions

sources/global2.php

  • Get server hostname as used in the URL.See also get_domain() and get_base_url_hostname() and get_server_names().
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Returns

  • The hostname
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get server hostname as used in the URL.See also get_domain() and get_base_url_hostname() and get_server_names().
 *
 * @return string The hostname
 */

function get_request_hostname() : string
 

sources/minikernel.php

  • Get server hostname as used in the URL.See also get_domain() and get_base_url_hostname().
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Returns

  • The hostname (false: error)
  • Type: ~string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get server hostname as used in the URL.See also get_domain() and get_base_url_hostname().
 *
 * @return ~string The hostname (false: error)
 */

function get_request_hostname()