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
  • Find file paths that match patterns glob

    glob

    Findfilepathsthatmat
  • Get the size of the real path buffer realpath_cache_size

    realpath_cache_size

    Getthesizeoftherealp
  • Format input from a file fscanf

    fscanf

    Formatinputfromafile
  • Get information about a connection linkinfo

    linkinfo

    Getinformationabouta
  • Change the group to which the file belongs chgrp

    chgrp

    Changethegrouptowhic
  • Returns the file name part in the path basename

    basename

    Returnsthefilenamepa
  • Change the current umask umask

    umask

    Changethecurrentumas
  • Modify the owner of the symbolic link lchown

    lchown

    Modifytheownerofthes
Popular Articles