I guess I should have posted the code I'm having problems with.
Code:
$domains_name = "test.com";
$vhosts_name = "mail.test.com";
$vhosts2_name = "webmail.test.com";
// add vhost on zimbra server
if($zim->zimbra_modify_domain($domains_name,$a=array('zimbraVirtualHostname'=>$vhosts_name,'zimbraVirtualHostname[1]=>$vhosts2_name))==true){
// add vhost on db->vhosts
$message = "looking good so far";
$message_class = "message_good";
} else {
$message = "hmmm something went wrong.";
$message_class = "message_bad";
} In the Zimbra Admin panel, they have the vhosts listed as zimbraVirtualHostname[0] and zimbraVirtualHostname[1] as you add them there, so I tried it with the same thinking it would add them as an array. But it didn't.
Am I just missing the boat completely??
Thanks so much for the reply and the help!
