PHP function gethostname()

Version availability: PHP 5.3.0

Gets the host name

Parameters

The function has no input parameters.

Return values

string

a string with the hostname on success, otherwise false is returned.

Other resources

Official gethostname documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.