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
    $df = diskfreespace("/"); // $df contains the number of bytes available on "/"

Prev | Home | Next
dirname | Up | fclose