Difference between revisions of "GETLOCALHOST()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function to return the hostname of the server that is running the Recital | + | Function to return the hostname of the server that is running the Recital Server |
− | + | ||
==Syntax== | ==Syntax== | ||
GETLOCALHOST() | GETLOCALHOST() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[GETREMOTEADDR()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER | + | [[GETREMOTEADDR()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER()]], [[ISSERVER()]] |
− | + | ||
==Description== | ==Description== | ||
− | The GETLOCALHOST() function returns the hostname of the server that is running the Recital | + | The GETLOCALHOST() function returns the hostname of the server that is running the Recital Server. The address is returned as a character string. |
− | + | ||
− | + | ||
+ | An empty string will be returned if the function is not being run via the Recital Server or if the server does not have a hostname defined. | ||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Environment]] | [[Category:Environment]] | ||
[[Category:Environment Functions]] | [[Category:Environment Functions]] |
Revision as of 12:16, 9 February 2012
Contents
Purpose
Function to return the hostname of the server that is running the Recital Server
Syntax
GETLOCALHOST()
See Also
GETREMOTEADDR(), GETREMOTEHOST(), GETREMOTEUSER(), ISSERVER()
Description
The GETLOCALHOST() function returns the hostname of the server that is running the Recital Server. The address is returned as a character string.
An empty string will be returned if the function is not being run via the Recital Server or if the server does not have a hostname defined.
Example
mCurrentHostName = getlocalhost()