downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

vpopmail_alias_get> <vpopmail_alias_del
[edit] Last updated: Wed, 19 Jun 2013

view this page in

vpopmail_alias_get_all

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

vpopmail_alias_get_allObtiene todas las líneas de un alias de un dominio dado

Descripción

array vpopmail_alias_get_all ( string $domain )
Advertencia

Esta función ha sido declarada EXPERIMENTAL. Su comportamiento, su nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Use esta función bajo su propio riesgo.

Advertencia

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.



add a note add a note User Contributed Notes vpopmail_alias_get_all - [1 notes]
up
0
phpnet at syberisle dot net
10 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

 
show source | credits | sitemap | contact | advertising | mirror sites