php查看目录中可用磁盘空间函数disk_free_space

2011-05-23 16:50:21 作者:admin 来源: 浏览次数:0 网友评论 0

disk_free_space — 返回目录中的可用空间
float disk_free_space    ( string $directory   )
给出一个包含有一个目录的字符串,本函数将根据相应的文件系统或磁盘分区返回可用的字节数。

disk_free_space返回目录中的可用空间

float disk_free_space ( string $directory )

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

 

Example #1 disk_free_space() 例子

<?php
// $df 包含根目录下可用的字节数
$df = disk_free_space("/");
//在 Windows 下:
disk_free_space("C:");
disk_free_space("D:");
?>

 

Note: 此函数不能作用于ITStore:C:\TDDownload\php_manual_zh.chm::/res/features.remote-files.html">远程文件,被检查的文件必须是可通过服务器的文件系统访问的。

别名diskfreespace

关键词:php磁盘空间

[错误报告] [推荐] [收藏] [打印] [关闭] [返回顶部]

  • 验证码:

最新图片文章

最新文章