mgd_list_hosts

Name

mgd_list_hosts -- List midgard hosts

Synopsis

mgd_list_hosts(void);

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.&lt;br>";
 } else {
   while( $list->fetch() ) {
 echo $list->name . $list->prefix . ":" $list->port;
   }
 }
?>