vpopmail_alias_get_all

(PHP 4 >= 4.0.7, PECL vpopmail >= 0.2)

vpopmail_alias_get_allGet 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.

Коментарии

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
2002-08-09 07:18:32
http://php5.kiev.ua/manual/ru/function.vpopmail-alias-get-all.html

    Поддержать сайт на родительском проекте КГБ