©
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
(PHP 4 >= 4.0.7, PECL vpopmail >= 0.2)
vpopmail_alias_get_all — Get all lines of an alias for a domain
$domain
)此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。
本函数还未编写文档,仅有参数列表。
[#1] phpnet at syberisle dot net [2002-08-09 04:18:32]
The $key part gives us the alias
i.e. - for .qmail-draxon the alias will hold "draxon"
the $value part gives us another array that houses the content of the .qmail file one array entry per line.
note: even if there is only 1 entry in the .qmail file it will still return an array
$aliases = vpopmail_alias_get_all("syberisle.net");
foreach($aliases AS $key => $value) {
echo "$key\n";
foreach($value AS $vkey => $alias) {
echo "\t=> $alias\n";
}
}
Enjoy,
Dave L