PHP disk_total_space()函数 disk_total_space() 函数可以以字节返回指定目录的总空间。 语法 float disk_total_space ( string directory )PHPCopy 给定一个包含目录的字符串,disk_total_space()函数可以返回相应文件系统或磁盘分区上的总字节数。 示例 <?php echo disk_total_space("C:"); echo "\n"; echo disk_total_space("E:"); ?>PHPCopy 输出 277320036352 209714147328PHPCopy