Get free space, in bytes, of the specified directory with diskfreespace() in PHP

Description

The following code shows how to get free space, in bytes, of the specified directory with diskfreespace().

Example


/*www  . j a  va2s  .c  o  m*/

<?php
    echo diskfreespace("C:");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




Directory
DirectoryIterator
Drive
File
File Permission
File Read Save
FileSystemIterator
Path
Zip