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

search for in the

vpopmail_alias_get> <vpopmail_alias_del
Last updated: Fri, 10 Oct 2008

view this page in

vpopmail_alias_get_all

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

vpopmail_alias_get_allLit toutes les lignes d'un alias d'un domaine

Description

array vpopmail_alias_get_all ( string $domain )
Avertissement

Cette fonction est EXPERIMENTALE. Cela signifie que le comportement de cette fonction, son nom et, concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS ! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.

Avertissement

Cette fonction n'est pas documentée et seule la liste des arguments est disponible.



add a note add a note User Contributed Notes
vpopmail_alias_get_all
phpnet at syberisle dot net
09-Aug-2002 04:18
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

vpopmail_alias_get> <vpopmail_alias_del
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites