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
vpopmail_alias_get_all
(PHP 4 >= 4.0.7, PECL vpopmail >= 0.2)
vpopmail_alias_get_all — Get all lines of an alias for a domain
Descrição
array vpopmail_alias_get_all
( string $domain
)
Aviso
Esta função é EXPERIMENTAL. O comportamento desta função, seu nome, incluindo toda documentação pode ser modificado sem aviso em futuras versões do PHP. Esta função deve ser usada por sua própria conta e risco.
Aviso
Esta função não está documentada; somente a lista de argumentos está disponível.
User Contributed Notes
vpopmail_alias_get_all
vpopmail_alias_get_all
phpnet at syberisle dot net
09-Aug-2002 01:18
09-Aug-2002 01:18

vpopmail_alias_del