Implemented user note, that php_uname('n') also does this before 5.3. Via jonasschaub at gmail dot com

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292137 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2009-12-14 17:28:58 +00:00
parent 7258e52d02
commit 0af64c0ca6

View file

@ -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 @@ echo gethostname(); // may output e.g,: sandie
<para>
<simplelist>
<member><function>gethostbyname</function></member>
<member><function>gethostbyaddr</function></member>
<member><function>php_uname</function></member>
</simplelist>
</para>
</refsect1>