disk_total_space

(PHP 4 >= 4.1.0, PHP 5)

disk_total_space -- Geeft de totale ruimte van een folder terug

Beschrijving

float disk_total_space ( string directory )

Als een string met een folder gegeven is, geeft deze functie het totale aantal bytes terug op het overeenkomende bestands-systeem of schijf partitie.

Voorbeeld 1. disk_total_space() voorbeeld

<?php
// $df bevat het totale aantal bytes op "/"
$df = disk_total_space("/");
?>

Opmerking: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.

Zie ook disk_free_space().