|
vpopmail_alias_get_all
Get all lines of an alias for a domain
(PHP 4 >= 4.0.7, PECL vpopmail:0.2)
Code Examples / Notes » vpopmail_alias_get_allphpnet
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 |
Change Languagevpopmail_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 |