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
  • Rename a file or directory rename

    rename

    Renameafileordirecto
  • Get information about a connection linkinfo

    linkinfo

    Getinformationabouta
  • Return the target of the symbolic link readlink

    readlink

    Returnthetargetofthe
  • All remaining data at the output file pointer fpassthru

    fpassthru

    Allremainingdataatth
  • Get file information through the opened file pointer fstat

    fstat

    Getfileinformationth
  • Group of files obtained filegroup

    filegroup

    Groupoffilesobtained
  • Export buffered content to file fflush

    fflush

    Exportbufferedconten
  • Format input from a file fscanf

    fscanf

    Formatinputfromafile
Popular Articles