English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The disk_free_space() function can return the available space for the specified directory (in bytes).
float disk_free_space ( string $directory )
Given a string containing a directory, the disk_free_space() function can return the number of available bytes on the corresponding file system or disk partition.
<?php echo disk_free_space("C:\"); echo "\n"; echo disk_free_space("E:\"); ?gt;
输出结果
224150941696 209571344384