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

40 阅读1分钟

diskfreespace() - 语法

float diskfreespace ( string $directory );

此函数的别名为:disk_free_space()。

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

diskfreespace() - 返回值

它返回给定路径的基本名称。

diskfreespace() - 示例

<?php
   $hdwinC=diskfreespace("C:");
   echo "Diskspace left on C: $hdwinC";
?>

参考链接

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