cPanel XMLAPI - gethostname


DESCRIPTION

This function lists the server's hostname.


VARIABLES

INPUT

NONE

OUTPUT

gethostname
Data wrapper that contains the hostname data.

hostname
Hostname of the server. Ex: myserver.domain.tld


EXAMPLES

Calling this URL in WebHost Manager: /xml-api/gethostname

will produce XML similar to:

<gethostname>

<hostname>myserver.domain.tld</hostname>

</gethostname>


COPYRIGHT

Copyright 2007 cPanel Inc.