Get total space, in bytes, of the specified directory with disk_total_space() in PHP

Description

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

Example



<?php
    echo disk_total_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