Function __global->get_server_names
Definitions
sources/global3.php
- Get possible hostnames of the server.In order of what is most likely what the server considers itself.Also see get_domain() and get_request_hostname() and get_base_url_hostname() and get_localhost_names().
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$include_non_web_names | boolean | True | N/A | N/A | Whether to include names that may not be for a web domain |
$include_equivalents | boolean | True | N/A | N/A | Whether to include www vs non-www equivalents |
Return
- Host names
- Type: array
- Set: N/A
- Range: N/A