开发者

How to Show Disk Usage via PHP?

开发者 https://www.devze.com 2023-04-12 16:58 出处:网络
Does anyone have a PHP script to share that displays current server 开发者_运维问答disk usage?

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

精彩评论

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