==== XML ==== ==== PHP ==== function rpcf_get_new_secret($len=8) { //0x0060 $ret=array(); if (!$this->connection->urfa_call(0x0060)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($len); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $ret['error'] = $x->DataGetString(); $ret['secret'] = $x->DataGetString(); // $this->connection->urfa_get_data(); } // 0 Error return $ret; }