Latest web development tutorials

PHP disk_total_space () function

PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual

Definition and Usage

disk_total_space () function returns the total disk capacity specified directory, in bytes.

grammar

disk_total_space(directory)

参数 描述
directory 必需。规定要检查的目录。


Examples

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

The code above will output:

119990349824


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual