Function __global->is_our_server
Definitions
sources/global3.php
- Find whether a machine is our server.Also see is_local_machine().
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $ip_or_hostname | ?IP | No | No | Null | N/A | N/A | IP address or hostname (null: current user's IP address) |
Returns
- If it is our server
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether a machine is our server.Also see is_local_machine().
*
* @param ?IP $ip_or_hostname IP address or hostname (null: current user's IP address)
* @return boolean If it is our server
*/
function is_our_server(?string $ip_or_hostname = null) : bool
* Find whether a machine is our server.Also see is_local_machine().
*
* @param ?IP $ip_or_hostname IP address or hostname (null: current user's IP address)
* @return boolean If it is our server
*/
function is_our_server(?string $ip_or_hostname = null) : bool

