當前位置: 首頁> 函數類別大全> 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
同類函數
  • 返迴路徑中的目錄部分 dirname

    dirname

    返迴路徑中的目錄部分
  • 改變文件模式 chmod

    chmod

    改變文件模式
  • 將整個文件讀入一個字符串 file_get_contents

    file_get_contents

    將整個文件讀入一個字符串
  • 取得文件的inode 修改時間 filectime

    filectime

    取得文件的inode修改時間
  • 返回規範化的絕對路徑名 realpath

    realpath

    返回規範化的絕對路徑名
  • 解析一個配置文件 parse_ini_file

    parse_ini_file

    解析一個配置文件
  • stream_set_write_buffer 的別名 set_file_buffer

    set_file_buffer

    stream_set_write_buf
  • 提供有關文件的信息 stat

    stat

    提供有關文件的信息