2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-02-03 08:13:44 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.64 -->
|
2007-02-03 08:13:44 +00:00
|
|
|
<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>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>float</type><methodname>disk_total_space</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<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">
|
2002-04-15 00:12:54 +00:00
|
|
|
<![CDATA[
|
2003-02-22 18:55:36 +00:00
|
|
|
<?php
|
|
|
|
// $df contains the total number of bytes available on "/"
|
|
|
|
$df = disk_total_space("/");
|
2003-12-26 19:48:54 +00:00
|
|
|
|
|
|
|
// On Windows:
|
|
|
|
disk_total_space("C:");
|
|
|
|
disk_total_space("D:");
|
2003-02-22 18:55:36 +00:00
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
2007-02-03 08:13:44 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
2003-02-22 18:55:36 +00:00
|
|
|
|
2007-02-03 08:13:44 +00:00
|
|
|
¬e.no-remote;
|
|
|
|
|
|
|
|
<simpara>
|
|
|
|
See also <function>disk_free_space</function>
|
|
|
|
</simpara>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|