Name
mgd_list_hosts -- List midgard hosts
Description
Minimum version: Midgard 1.2.5 (Mad King)
Lists all midgard hosts within the sitegroup.
Returns an object traversable by calling fetch
if successfull. Returns false on failure.
Example
<?php
$list = mgd_list_hosts();
if( $list->N == 0 ) {
echo "No hosts found.<br>";
} else {
while( $list->fetch() ) {
echo $list->name . $list->prefix . ":" $list->port;
}
}
?>