English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP Filesystem Reference Manual
The diskfreespace() function can return the available space of the specified directory in bytes. This function is an alias of the disk_free_space() function.
diskfreespace(directory)
<?php echo diskfreespace("C:\"); echo "\n"; echo diskfreespace("E:\"); ?>
Output Result
224159571968 209571344384