Php-function-disk-free-space

提供:Dev Guides
移動先:案内検索

PHP-関数disk_free_space()

構文

float disk_free_space ( string $directory );

定義と使い方

ディレクトリを含む文字列を指定すると、この関数は対応するファイルシステムまたはディスクパーティションで使用可能なバイト数を返します。

パラメーター

Sr.No Parameter & Description
1

directory

ファイルシステムまたはディスクパーティションのディレクトリ。

戻り値

使用可能なバイト数をfloatとして返します。

以下は、この機能の使用法です-

<?php
   disk_free_space("C:");
   disk_free_space("D:");
    disk_free_space("E:");
?>