(PHP 4 >= 4.1.0, PHP 5, PHP 7)
disk_free_space — 锟斤拷锟斤拷目录锟叫的匡拷锟矫空硷拷
$directory
) : float锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷目录锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷应锟斤拷锟侥硷拷系统锟斤拷锟斤拷谭锟斤拷锟斤拷锟斤拷乜锟斤拷玫锟斤拷纸锟斤拷锟斤拷锟�
directory
锟侥硷拷系统目录锟斤拷锟竭达拷锟教凤拷锟斤拷锟斤拷
Note:
锟斤拷锟街革拷锟斤拷锟斤拷募锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷募锟侥柯硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷为锟斤拷锟斤拷锟斤拷统一锟斤拷锟斤拷锟斤拷锟斤拷锟较低筹拷锟� PHP 锟芥本锟斤拷锟届。
锟皆革拷锟姐返锟截匡拷锟矫碉拷锟街斤拷锟斤拷锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 disk_free_space() 锟斤拷锟斤拷
<?php
// $df 锟斤拷锟斤拷锟斤拷目录锟铰匡拷锟矫碉拷锟街斤拷锟斤拷
$df = disk_free_space("/");
//锟斤拷 Windows 锟斤拷:
$df_c = disk_free_space("C:");
$df_d = disk_free_space("D:");
?>
Note: 锟剿猴拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷远锟斤拷锟侥硷拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷锟斤拷锟斤拷锟角匡拷通锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥硷拷系统锟斤拷锟绞的★拷