实例
//disk_free_space() //函数用于获取剩余磁盘大小,文件路径,磁盘路径 //disk_total_space() //函数用于获取磁盘总大小,文件路径,磁盘路径 //b除1024 = kb //kb除1024= mb //mb除1024= gb $C_free = disk_free_space('C:')/1024/1024/1024; echo $C_free; echo'<br />'; $C_total = disk_total_space('C:')/1024/1024/1024; echo $C_total;
运行实例 »
点击 "运行实例" 按钮查看在线实例