开发者

How to Show Disk Usage via PHP?

Does anyone have a PHP script to share that displays current server 开发者_运维问答disk usage?

Thanks.


The one thing PHP does really well is having documentation that's easy to find.

From the docs:

float disk_total_space ( string $directory )

Given a string containing a directory, this function will return the total number of bytes on the corresponding filesystem or disk partition.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜