View Single Post
  #20 (permalink)  
Old 09-08-2009, 06:21 AM
bvd bvd is offline
Starter Member
 
Posts: 2
Default re:Add Virtual Host with Class

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!

Last edited by bvd; 09-10-2009 at 02:01 PM..
Reply With Quote