Function __global->is_local_machine

Definitions

sources/global3.php

  • Find whether a machine is local (localhost or on non-routable LAN), rather than a live-site.Also see is_our_server().
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: bool

Parameters

Name Type Default Set Range Description
$ip_or_hostname ?IP Null N/A N/A IP address or hostname (null: currently requested hostname)

Return

  • If it is running locally
  • Type: boolean
  • Set: N/A
  • Range: N/A