diskfreespace

(PHP3 >= 3.0.7, PHP4 >= 4.0b4)

diskfreespace -- Returns available space in directory

Description

float diskfreespace (string directory)

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

Example 1. diskfreespace() example


$df = diskfreespace("/"); // $df contains the number of bytes 
                          // available on "/"
      


Hosted by Tonec Inc.