When i use this funtion in PHP 5.2.9, returns this: Fatal error: Call to undefined function gethostname()
Its problem with my PHP?
gethostname
(PHP >= 5.3.0)
gethostname — Gets the host name
Description
string gethostname
( void
)
gethostname() gets the standard host name for the local machine.
Return Values
Returns a string with the hostname on success, otherwise FALSE is returned.
Examples
Example #1 A simple gethostname() example
<?php
echo gethostname(); // may output e.g,: sandie
?>
gethostname
contato at dmolin dot com dot br
16-Aug-2009 08:35
16-Aug-2009 08:35
