+
82
-

php怎么获取服务器硬盘剩余可用空间大小?

php怎么获取服务器硬盘剩余可用空间大小?

网友回复

+
0
-

windows下

<?php
//在 Windows 下:
disk_free_space("C:");
disk_free_space("D:");
?>

linux

<?php
$df = disk_free_space("/");
?>

大小都是字节,自己转换
by ppzhuzhu
我知道答案,我要回答