PHP Conference Japan 2024

EventDnsBase::loadHosts

(PECL event >= 1.2.6-beta)

EventDnsBase::loadHosts從 hosts 檔案載入 hosts 檔案 (格式與 /etc/hosts 相同)

說明

public EventDnsBase::loadHosts( 字串 $hosts ): 布林值

從 hosts 檔案載入 hosts 檔案 (格式與 /etc/hosts 相同)。

參數

hosts

hosts 檔案的路徑。

傳回值

成功時傳回 true,失敗時傳回 false

新增筆記

使用者貢獻的筆記

此頁面沒有使用者貢獻的筆記。
To Top