无涯教程-File文件 - disk_total_space()函数

50 阅读1分钟

disk_total_space() - 语法

float disk_total_space ( string $directory );

给定一个包含目录的字符串,此函数将返回相应文件系统或磁盘分区上的总字节数。

directory      -  文件系统或磁盘分区的目录。

disk_total_space() - 返回值

它以浮点数的形式返回字节总数。

disk_total_space() - 示例

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

参考链接

www.learnfk.com/php/php-fun…