vpopmail_alias_get_all

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

vpopmail_alias_get_allZwraca tablicę z informacjami o aliasach dla domeny

Opis

vpopmail_alias_get_all ( string $domena ) : array
Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

Ostrzeżenie

Ta funkcja jest obecnie nieudokumentowana, dostępna jest jedynie lista jej argumentów.

add a note add a note

User Contributed Notes 1 note

up
0
phpnet at syberisle dot net
21 years ago
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
To Top