<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.filesystem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.disk-free-space.php',
    1 => 'disk_free_space',
    2 => 'Restituisce lo spazio disponibile nella directory',
  ),
  'up' => 
  array (
    0 => 'ref.filesystem.php',
    1 => 'Filesystem Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.dirname.php',
    1 => 'dirname',
  ),
  'next' => 
  array (
    0 => 'function.disk-total-space.php',
    1 => 'disk_total_space',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/filesystem/functions/disk-free-space.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.disk-free-space" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">disk_free_space</h1>
    <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">disk_free_space</span> &mdash; <span class="dc-title">Restituisce lo spazio disponibile nella directory</span></p>

   </div>
   <div class="refsect1 unknown-541" id="refsect1-function.disk-free-space-unknown-541">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>disk_free_space</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$directory</code></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

    <p class="para rdfs-comment">
     Data una stringa contenente una directory, questa funzione restituirà
     il numero di byte disponibili nel corrispondente filesystem o
     nella partizione corrispondente.
    </p>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 Esempio <span class="function"><strong>disk_free_space()</strong></span></strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// $df contiene il numero di byte disponibili in "/"<br /></span><span style="color: #0000BB">$df </span><span style="color: #007700">= </span><span style="color: #0000BB">disk_free_space</span><span style="color: #007700">(</span><span style="color: #DD0000">"/"</span><span style="color: #007700">); <br /><br /></span><span style="color: #FF8000">// Con Windows:<br /></span><span style="color: #0000BB">disk_free_space</span><span style="color: #007700">(</span><span style="color: #DD0000">"C:"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">disk_free_space</span><span style="color: #007700">(</span><span style="color: #DD0000">"D:"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

     </div>
    </p>

    <blockquote class="note"><p><strong class="note">Nota</strong>: <span class="simpara">Questa funzione non opererà su
<a href="features.remote-files.php" class="link">file remoti</a> perché il file che
deve essere esaminato deve essere accessibile attraverso il filesysmte del server.</span></p></blockquote>

    <p class="simpara">
     Vedere anche <span class="function"><a href="function.disk-total-space.php" class="function">disk_total_space()</a></span>
    </p>
   </div>

  </div><?php manual_footer($setup); ?>