php man page for disk_free_space

Query: disk_free_space

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

DISK_FREE_SPACE(3)							 1							DISK_FREE_SPACE(3)

disk_free_space - Returns available space on filesystem or disk partition

SYNOPSIS
float disk_free_space (string $directory)
DESCRIPTION
Given a string containing a directory, this function will return the number of bytes available on the corresponding filesystem or disk partition.
PARAMETERS
o $directory - A directory of the filesystem or disk partition. Note Given a file name instead of a directory, the behaviour of the function is unspecified and may differ between operating sys- tems and PHP versions.
RETURN VALUES
Returns the number of available bytes as a float or FALSE on failure.
EXAMPLES
Example #1 disk_free_space(3) example <?php // $df contains the number of bytes available on "/" $df = disk_free_space("/"); // On Windows: $df_c = disk_free_space("C:"); $df_d = disk_free_space("D:"); ?>
NOTES
Note This function will not work on remote files as the file to be examined must be accessible via the server's filesystem.
SEE ALSO
disk_total_space(3). PHP Documentation Group DISK_FREE_SPACE(3)
Related Man Pages
disktab(5) - ultrix
chgrp(3) - php
rmdir(3) - php
disk_free_space(3) - php
lchown(3) - php
Similar Topics in the Unix Linux Community
Space left under current directory
Inconsistent memory usage display
C++: how to check my directory disk space
Duplicate directory in same partition help.
Display all directory/sub directory with occupied space?