當前位置: 首頁> 函數類別大全> disk_total_space

disk_total_space

返回文件系統或磁盤分區的總大小
名稱:disk_total_space
分類:文件系統
所屬語言:php
一句話介紹:返回一個目錄的磁盤總容量。

定義和用法

disk_total_space()函數返回指定目錄的磁盤總大小。

實例

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

輸出類似這樣:

 509693888668

文法

disk_total_space ( directory )
參數描述
directory必需。規定要檢查的目錄。

說明

directory參數是一個目錄的字符串。該函數將根據相應的文件系統或磁盤分區返回所有的字節數。

同類函數
  • 解析一個配置文件 parse_ini_file

    parse_ini_file

    解析一個配置文件
  • 返回符號鏈接的目標 readlink

    readlink

    返回符號鏈接的目標
  • is_writable 的別名 is_writeable

    is_writeable

    is_writable的別名
  • disk_free_space 的別名 diskfreespace

    diskfreespace

    disk_free_space的別名
  • 關閉一個已打開的文件指針 fclose

    fclose

    關閉一個已打開的文件指針
  • 獲取一個連接的信息 linkinfo

    linkinfo

    獲取一個連接的信息
  • 測試文件指針是否到了文件結束的位置 feof

    feof

    測試文件指針是否到了文件結束的位置
  • 刪除文件 unlink

    unlink

    刪除文件
熱門文章