Query: gethostname
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETHOSTNAME(3) 1 GETHOSTNAME(3) gethostname - Gets the host nameSYNOPSISstring gethostname (void )DESCRIPTIONgethostname(3) gets the standard host name for the local machine.RETURN VALUESReturns a string with the hostname on success, otherwise FALSE is returned.EXAMPLESExample #1 A simple gethostname(3) example <?php echo gethostname(); // may output e.g,: sandie // Or, an option that also works before PHP 5.3 echo php_uname('n'); // may output e.g,: sandie ?>SEE ALSOgethostbyname(3), gethostbyaddr(3), php_uname(3). PHP Documentation Group GETHOSTNAME(3)
| Related Man Pages |
|---|
| sethostname(2) - redhat |
| gethostname(2) - bsd |
| sethostname(3) - mojave |
| gethostname(3) - linux |
| gethostname(3p) - suse |
| Similar Topics in the Unix Linux Community |
|---|
| regarding gethostname() |
| gethostnameby_r crashes |
| gethostname warning |