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.
精彩评论