PHP Doku:: Get all lines of an alias for a domain - function.vpopmail-alias-get-all.html

Verlauf / Chronik / History: (47) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzE-Mail-relevante Erweiterungenvpopmailvpopmail Funktionenvpopmail_alias_get_all

Ein Service von Reinhard Neidl - Webprogrammierung.

vpopmail Funktionen

<<vpopmail_alias_del

vpopmail_alias_get>>

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

Beschreibung

array vpopmail_alias_get_all ( string $domain )
Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.

Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
phpnet at syberisle dot net
9.08.2002 13: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



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)