PHP Manual
Prev |  | Next

# diskfreespace

diskfreespace -- Return 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 disk.

Example 1. diskfreespace() example

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

Prev | Home | Next
dirname | Up | fclose