PHP disk_total_space() 函数

定义和用法
disk_total_space() 函数返回指定目录的磁盘总容量,以字节为单位。
语法
disk_total_space(directory)
参数 | 描述 |
---|---|
directory | 必需。规定要检查的目录。 |
实例
<?php
echo disk_total_space("C:");
?>
echo disk_total_space("C:");
?>
上面的代码将输出:
119990349824
