note 24202 added to function.vpopmail-alias-get-all
| From: | phpnet at syberisle dot net | Date: | Fri, 09 Aug 2002 08:18:32 +0000 |
| Subject: | note 24202 added to function.vpopmail-alias-get-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34596@lists.php.net to get a copy of this message | ||
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
--
http://www.php.net/manual/en/function.vpopmail-alias-get-all.php
http://master.php.net/manage/user-notes.php?action=edit+24202
http://master.php.net/manage/user-notes.php?action=delete+24202
http://master.php.net/manage/user-notes.php?action=reject+24202