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 partitionSYNOPSISfloat disk_free_space (string $directory)DESCRIPTIONGiven a string containing a directory, this function will return the number of bytes available on the corresponding filesystem or disk partition.PARAMETERSo $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 VALUESReturns the number of available bytes as a float or FALSE on failure.EXAMPLESExample #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:"); ?>NOTESNote This function will not work on remote files as the file to be examined must be accessible via the server's filesystem.SEE ALSOdisk_total_space(3). PHP Documentation Group DISK_FREE_SPACE(3)
Related Man Pages |
---|
disktab(5) - ultrix |
readdir(3) - php |
file_exists(3) - php |
disk_free_space(3) - php |
link(3) - php |
Similar Topics in the Unix Linux Community |
---|
How can this be?! |
hd space for suse |
Duplicate directory in same partition help. |
Display all directory/sub directory with occupied space? |
How to scrub directory only if on own partition/drive? |