svn: /phpdoc/en/trunk/reference/network/functions/ gethostname.xml

From: Date: Mon, 14 Dec 2009 17:28:58 +0000
Subject: svn: /phpdoc/en/trunk/reference/network/functions/ gethostname.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5662@lists.php.net to get a copy of this message
philip Mon, 14 Dec 2009 17:28:58 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=292137 Log: Implemented user note, that php_uname('n') also does this before 5.3. Via jonasschaub at gmail dot com Changed paths: U phpdoc/en/trunk/reference/network/functions/gethostname.xml Modified: phpdoc/en/trunk/reference/network/functions/gethostname.xml =================================================================== --- phpdoc/en/trunk/reference/network/functions/gethostname.xml 2009-12-14 16:56:21 UTC (rev 292136) +++ phpdoc/en/trunk/reference/network/functions/gethostname.xml 2009-12-14 17:28:58 UTC (rev 292137) @@ -35,6 +35,9 @@ <![CDATA[ <?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 ?> ]]> </programlisting> @@ -47,6 +50,8 @@ <para> <simplelist> <member><function>gethostbyname</function></member> + <member><function>gethostbyaddr</function></member> + <member><function>php_uname</function></member> </simplelist> </para> </refsect1>

« previous php.doc.cvs (#5662) next »