Current Location: Home> Function Categories> disk_total_space

disk_total_space

Returns the total size of the file system or disk partition
Name:disk_total_space
Category:File system
Programming Language:php
One-line Description:Returns the total disk capacity of a directory.

Definition and usage

disk_total_space() function returns the total disk size of the specified directory.

Example

 <?php
echo disk_total_space ( "C:" ) ;
?>

The output looks like this:

 509693888668

grammar

 disk_total_space ( directory )
parameter describe
Directory Required. Specify the directory to be inspected.

illustrate

The directory parameter is a directory string. This function will return all bytes based on the corresponding file system or disk partition.

Similar Functions
  • Determine whether the given file name is writable is_writable

    is_writable

    Determinewhethertheg
  • Return the target of the symbolic link readlink

    readlink

    Returnthetargetofthe
  • Truncate the file to a given length ftruncate

    ftruncate

    Truncatethefiletoagi
  • Return to the directory part in the path dirname

    dirname

    Returntothedirectory
  • Read files (safely used in binary files) fread

    fread

    Readfiles(safelyused
  • Lightweight consultation file locking flock

    flock

    Lightweightconsultat
  • Delete files unlink

    unlink

    Deletefiles
  • Rename a file or directory rename

    rename

    Renameafileordirecto
Popular Articles