Current Location: Home> Function Categories> disk_free_space

disk_free_space

Returns the available space on the file system or disk partition
Name:disk_free_space
Category:File system
Programming Language:php
One-line Description:Returns the available space in the directory.

Definition and usage

disk_free_space() function returns the available space in the directory

Example

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

Output:

 209693288558

grammar

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

illustrate

The directory parameter is a directory string. This function returns the available number of bytes based on the corresponding file system or disk partition.

Similar Functions
  • Determine whether the given file name is a normal file is_file

    is_file

    Determinewhethertheg
  • Positioning in file pointer fseek

    fseek

    Positioninginfilepoi
  • Delete directory rmdir

    rmdir

    Deletedirectory
  • Rename a file or directory rename

    rename

    Renameafileordirecto
  • Get the inode of the file fileinode

    fileinode

    Gettheinodeofthefile
  • Get file information through the opened file pointer fstat

    fstat

    Getfileinformationth
  • See unlink() or unset() (PHP does not have delete keywords or functions) delete

    delete

    Seeunlink()orunset()
  • alias for fwrite fputs

    fputs

    aliasforfwrite
Popular Articles