Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : vpopmail Functions : vpopmail_alias_get_all

vpopmail_alias_get_all

Get all lines of an alias for a domain (PHP 4 >= 4.0.7, PECL vpopmail:0.2)
array vpopmail_alias_get_all ( string domain )

Warning:

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Warning:

This function is currently not documented; only the argument list is available.

Code Examples / Notes » vpopmail_alias_get_all

phpnet

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 Language


Follow Navioo On Twitter
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
eXTReMe Tracker