array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'eventdnsbase.loadhosts.php', 1 => 'EventDnsBase::loadHosts', 2 => 'Loads a hosts file (in the same format as /etc/hosts) from hosts file', ), 'up' => array ( 0 => 'class.eventdnsbase.php', 1 => 'EventDnsBase', ), 'prev' => array ( 0 => 'eventdnsbase.countnameservers.php', 1 => 'EventDnsBase::countNameservers', ), 'next' => array ( 0 => 'eventdnsbase.parseresolvconf.php', 1 => 'EventDnsBase::parseResolvConf', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventdnsbase/loadhosts.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventDnsBase::loadHosts

(PECL event >= 1.2.6-beta)

EventDnsBase::loadHostsLoads a hosts file (in the same format as /etc/hosts) from hosts file

Опис

public EventDnsBase::loadHosts( string $hosts ): bool

Loads a hosts file (in the same format as /etc/hosts) from hosts file.

Параметри

hosts

Path to the hosts' file.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.