disk_total_space
返回文件系统或磁盘分区的总大小
disk_total_space()
函数返回指定目录的磁盘总大小。
<?php echo disk_total_space("C:"); ?>
输出类似这样:
509693888668
disk_total_space(directory)
参数 | 描述 |
---|---|
directory | 必需。规定要检查的目录。 |
directory 参数是一个目录的字符串。该函数将根据相应的文件系统或磁盘分区返回所有的字节数。