(PECL event >= 1.2.6-beta)
EventDnsBase::loadHosts — 從 hosts 檔案載入 hosts 檔案 (格式與 /etc/hosts 相同)
$hosts
從 hosts 檔案載入 hosts 檔案 (格式與 /etc/hosts 相同)。
/etc/hosts
hosts
hosts 檔案的路徑。
成功時傳回 true,失敗時傳回 false。
true
false