Find total size of a filesystem in php

by satheeshkumar 2012-08-17 22:40:26

Find total size of a filesystem in php,

The disk_total_space() file system function in PHP will return the total amount of bytes a disk partition or filesystem can store. Will also read a windows partition total disk space.


$totalSpace = disk_total_space("file or foldername");
echo "There are " . $totalSpace . " bytes of total space in filesystem";
?>

Tagged in:

824
like
0
dislike
0
mail
flag

You must LOGIN to add comments