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

Description

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

Example



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

The code above generates the following result.





















Home »
  PHP Tutorial »
    File »




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