RT

解决方案 »

  1.   

    哪的,sever or client?不管哪的,不借助其它语言不行。
      

  2.   

    可以,使用disk_free_space函数,详细用法请看http://cn.php.net/manual/zh/function.disk-free-space.php
    <?php
    // $df 包含根目录下可用的字节数
    //类UNIX系统,Linux、FreeBSD等
    $df = disk_free_space("/");
    //在 Windows 下:
    disk_free_space("C:");
    disk_free_space("D:");
    ?>
      

  3.   

    如果要获取整个硬盘,你把disk_free_space扫描所有的分区,然后进行一些运算,就可以了
      

  4.   

    gingzai777 得没错,
    提取可用空间用disk_free_space()
    如果要总大小用disk_total_space()
      

  5.   

    如果机器上装了snmp,可以直接用php读出来