mgd_create_host

(Midgard 1.4.2 'Bifrost')

mgd_create_host -- Create a host record

Description

int mgd_create_host (string name, int port, int online, int root, int style, int auth, int owner, string [prefix])

Minimum version: Midgard 1.0 prefix available from: Midgard 1.4 (Bifrost)

Creates a midgard host with the provided parameters. You must be root to do this.

Returns the id of the created record if successful. Returns FALSE on failure.


<?php
 $name   = "www.midgard-project.org";
 $port   = 80;
 $online = 1;
 $root   = 101;
 $style  = 107;
 $auth   = 0;
 $owner  = 123;
 mgd_create_host( $name, $port, $online, $root, $style, $auth, $owner );
?>