php8.5
Home/ Manual/ event / eventdnsbase/ EventDnsBase::loadHosts

EventDnsBase::loadHosts

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

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

Description

EventDnsBase::loadHosts(string $hosts): bool

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

Parameters

hosts

Path to the hosts' file.

Return Values

Success

Source: reference/event/eventdnsbase/loadhosts.xml · from the official PHP manual (php/doc-en)