mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
Documentation for the new disk_total_space() function.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@47543 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4908a88a7b
commit
7d4843d6a1
1 changed files with 30 additions and 0 deletions
|
@ -330,6 +330,36 @@ $df = diskfreespace("/"); // $df contains the number of bytes
|
|||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.disk-total-space">
|
||||
<refnamediv>
|
||||
<refname>disk_total_space</refname>
|
||||
<refpurpose>Returns the total size of a directory</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>float <function>disk_total_space</function></funcdef>
|
||||
<paramdef>string <parameter>directory</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
Given a string containing a directory, this function will return
|
||||
the total number of bytes on the corresponding filesystem or disk
|
||||
partition.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>disk_total_space</function> example</title>
|
||||
<programlisting role="php">
|
||||
$df = disk_total_space("/"); // $df contains the total number of
|
||||
// bytes available on "/"
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<refentry id="function.fclose">
|
||||
<refnamediv>
|
||||
<refname>fclose</refname>
|
||||
|
|
Loading…
Reference in a new issue