当前位置: 首页> 函数类别大全> 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
同类函数
  • 返回路径中的文件名部分  basename

    basename

    返回路径中的文件名部分
  • 返回符号链接的目标  readlink

    readlink

    返回符号链接的目标
  • 判断文件是否存在且可读  is_readable

    is_readable

    判断文件是否存在且可读
  • 给出一个文件或符号连接的信息  lstat

    lstat

    给出一个文件或符号连接的信息
  • 打开文件或 URL  fopen

    fopen

    打开文件或URL
  • 用模式匹配文件名  fnmatch

    fnmatch

    用模式匹配文件名
  • 返回文件系统或磁盘分区上的可用空间  disk_free_space

    disk_free_space

    返回文件系统或磁盘分区上的可用空间
  • 返回文件系统或磁盘分区的总大小  disk_total_space

    disk_total_space

    返回文件系统或磁盘分区的总大小