mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
* added docs for php_uname()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@31447 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
55b5652c85
commit
76aee4339d
1 changed files with 33 additions and 1 deletions
|
@ -984,7 +984,7 @@ echo "Current PHP version: ".phpversion();
|
|||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>string <function>php_sapi_name</function></funcdef>
|
||||
<paramdef>void</paramdef>
|
||||
<void/>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
|
@ -1008,6 +1008,38 @@ else
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.php-uname">
|
||||
<refnamediv>
|
||||
<refname>php_uname</refname>
|
||||
<refpurpose>
|
||||
Returns information about the operating system PHP was built on
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>string <function>php_sapi_name</function></funcdef>
|
||||
<void/>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<simpara>
|
||||
<function>Php_uname</function> returns a string with a description
|
||||
of the operating system PHP is built on.
|
||||
</simpara>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>php_uname</function> Example</title>
|
||||
<programlisting role="php">
|
||||
if (substr(php_uname(), 0, 7) == "Windows") {
|
||||
die("Sorry, this script doesn't run on Windows.\n");
|
||||
}
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.putenv">
|
||||
<refnamediv>
|
||||
<refname>putenv</refname>
|
||||
|
|
Loading…
Reference in a new issue