PHPのdisk_total_space()関数
定義と使用法
disk_total_space()関数はバイト単位で、総ディスク容量指定されたディレクトリを返します。
文法
disk_total_space(directory)
参数 | 描述 |
---|---|
directory | 必需。规定要检查的目录。 |
例
<?php
echo disk_total_space("C:");
?>
echo disk_total_space("C:");
?>
意志出力上のコード:
119990349824
PHPファイルシステムリファレンスマニュアルを完了