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

disk_total_space

返回文件系统或磁盘分区的总大小
名称:disk_total_space
分类:文件系统
所属语言:php
一句话介绍:返回一个目录的磁盘总容量。

实例

<span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">disk_total_space</span><span class="token punctuation">(</span><span class="token string double-quoted-string">"C:"</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

输出类似这样:

509693888668
同类函数
  • 从文件中格式化输入  fscanf

    fscanf

    从文件中格式化输入
  • 返回符号链接的目标  readlink

    readlink

    返回符号链接的目标
  • 返回规范化的绝对路径名  realpath

    realpath

    返回规范化的绝对路径名
  • 删除文件  unlink

    unlink

    删除文件
  • 从文件指针中读取一行并过滤掉 HTML 标记  fgetss

    fgetss

    从文件指针中读取一行并过滤掉HTML标记
  • 获取文件的最后访问时间  fileatime

    fileatime

    获取文件的最后访问时间
  • 将缓冲内容输出到文件  fflush

    fflush

    将缓冲内容输出到文件
  • 更改文件所有者  chown

    chown

    更改文件所有者