English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP 基础教程

PHP 高级教程

PHP & MySQL

PHP 参考手册

Uso e esempio della funzione PHP disk_total_space()

PHP Filesystem 参考手册

La funzione disk_total_space() può restituire lo spazio totale specificato dalla directory (in byte).

Sintassi

float disk_total_space ( string directory )

Data una stringa che contiene una directory, la funzione disk_total_space() può restituire il numero totale di byte sulla rispettiva filesystem o partizione di disco.

在线示例

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

输出结果

277320036352
209714147328

PHP Filesystem 参考手册