Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<EventDnsBase::countNameserversEventDnsBase::parseResolvConf>
^EventDnsBaseLast updated: Mon, 26 Oct 2026

EventDnsBase::loadHosts

(PECL event >= 1.2.6-beta)

EventDnsBase::loadHosts — Loads a hosts file (in the same format as /etc/hosts) from hosts file

Description

public function 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

Returns true on success or false on failure.


<EventDnsBase::countNameserversEventDnsBase::parseResolvConf>
^EventDnsBaseLast updated: Mon, 26 Oct 2026