mgd_get_host

(Midgard 1.4.2 'Bifrost')

mgd_get_host -- Get a host record

Description

object mgd_get_host (int id)

Minimum version: Midgard 1.2.5 (Mad King)

Gets information about the host record with id id.

Returns an object describing the record if successful. Returns FALSE on failure.


<?php
 $id = 17;
 $host = mgd_get_host( $id );
 echo $host->name . $host->prefix . ":" $host->port;
?>