public function makeWhm2($host, $port, $passwd) { load_lib("pub:whm"); $whm = new WhmClient(); $whmUrl = "http://" . $host . ":" . $port . "/"; $whm->setUrl($whmUrl); $whm->setSecurityKey($passwd); return $whm; }