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

42 阅读1分钟

disk_free_space() - 语法

float disk_free_space ( string $directory );

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

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

disk_free_space() - 返回值

以浮点数形式返回可用字节数。

disk_free_space() - 示例

<?php
   disk_free_space("C:");
   disk_free_space("D:");
	disk_free_space("E:");
?>

参考链接

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