PHP中的disk_total_space()函数
disk_total_space()函数返回目录的总大小。它返回目录的字节总数。
语法
disk_total_space(dir_name)
参数
dir_name-指定目录名称。
返回
disk_total_space()函数以字节为单位返回总可用空间。
示例
<?php
echo disk_total_space("/home/");
?>输出结果
944459485184
让我们来看另一个例子。
示例
<?php
$total_space = disk_total_space("/home/");
echo "Total Available Space: $total_space";
?>输出结果
Total Available Space: 944459485184
热门推荐
10 祝孙辈生日祝福语简短
11 恋人跨年祝福语大全简短
12 考大学敬酒简短祝福语
13 开工投产大吉祝福语 简短
14 偶然结婚祝福语朋友简短
15 感谢学长学姐祝福语简短
16 戏精的祝福语简短
17 我要结婚祝福语简短
18 婚前女儿生日祝福语简短