<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.86 -->
<refentry id="function.disk-free-space">
 <refnamediv>
  <refname>disk_free_space</refname>
  <refpurpose>Returns available space in directory</refpurpose>
 </refnamediv>
 <refsect1>
  <title>Description</title>
  <methodsynopsis>
   <type>float</type><methodname>disk_free_space</methodname>
   <methodparam><type>string</type><parameter>directory</parameter></methodparam>
  </methodsynopsis>
  <para>
   Given a string containing a directory, this function will return
   the number of bytes available on the corresponding filesystem or
   disk partition.
  </para>
  <para>
   <example>
    <title><function>disk_free_space</function> example</title>
    <programlisting role="php">
<![CDATA[
<?php
// $df contains the number of bytes available on "/"
$df = disk_free_space("/");

// On Windows:
disk_free_space("C:");
disk_free_space("D:");
?>
]]>
    </programlisting>
   </example>
  </para>

  &note.no-remote;

  <simpara>
   See also <function>disk_total_space</function>
  </simpara>
 </refsect1>
</refentry>

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