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:
Jon Parise 2001-05-15 23:51:56 +00:00
parent 4908a88a7b
commit 7d4843d6a1

View file

@ -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>