mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
7258e52d02
commit
0af64c0ca6
1 changed files with 5 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue