How to get the disk space on a server?

前端 未结 4 2010
礼貌的吻别
礼貌的吻别 2020-12-16 18:43

I should to develop a web-application in php for a firm, and I need to know the disk free space of the server.

At the moment, I\'m able to obtain the free disk space

相关标签:
4条回答
  • 2020-12-16 18:50

    you can try disk_free_space()

    0 讨论(0)
  • 2020-12-16 19:02

    You can use disk_free_space

    0 讨论(0)
  • 2020-12-16 19:09

    disk_free_space - Will return you the number of bytes available on the filesystem or disk partition.

    disk_total_space - Will return you the number of total bytes (i.e. capacity) on the filesystem or disk partition.

    0 讨论(0)
  • 2020-12-16 19:09

    Try disk_total_space function

    float disk_total_space ( string $directory )
    

    http://php.net/manual/en/function.disk-total-space.php

    0 讨论(0)
提交回复
热议问题