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 出阁宴祝福语姐姐简短