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
Description
array vpopmail_alias_get_all
( string
$domain
)Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
Warning
This function is currently not documented; only its argument list is available.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с почтой
- vpopmail
- vpopmail_add_alias_domain_ex
- vpopmail_add_alias_domain
- vpopmail_add_domain_ex
- vpopmail_add_domain
- vpopmail_add_user
- vpopmail_alias_add
- vpopmail_alias_del_domain
- vpopmail_alias_del
- vpopmail_alias_get_all
- vpopmail_alias_get
- vpopmail_auth_user
- vpopmail_del_domain_ex
- vpopmail_del_domain
- vpopmail_del_user
- vpopmail_error
- vpopmail_passwd
- vpopmail_set_user_quota
Коментарии
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