当前位置: 首页> 函数类别大全> diskfreespace

diskfreespace

disk_free_space 的别名
名称:diskfreespace
分类:文件系统
所属语言:php
一句话介绍:disk_free_space() 的别名。

定义和用法

diskfreespace() 函数返回目录中的可用空间。该函数是 disk_free_space() 函数的别名。

实例

<?php
echo diskfreespace("C:");
?>

输出:

209693288558

语法

diskfreespace(directory)
参数 描述
directory 必需。规定要检查的目录。

说明

directory 参数是一个目录的字符串。该函数将根据相应的文件系统或磁盘分区返回可用的字节数。

同类函数
  • 清除文件状态缓存  clearstatcache

    clearstatcache

    清除文件状态缓存
  • 建立一个硬连接  link

    link

    建立一个硬连接
  • 通过已打开的文件指针取得文件信息  fstat

    fstat

    通过已打开的文件指针取得文件信息
  • 判断文件是否存在且可读  is_readable

    is_readable

    判断文件是否存在且可读
  • 获取 realpath 缓存条目  realpath_cache_get

    realpath_cache_get

    获取realpath缓存条目
  • 从文件指针中读取字符  fgetc

    fgetc

    从文件指针中读取字符
  • 判断给定文件名是否为一个正常的文件  is_file

    is_file

    判断给定文件名是否为一个正常的文件
  • 将数据写入文件  file_put_contents

    file_put_contents

    将数据写入文件
热门文章