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
  • Returns the file name part in the path basename

    basename

    Returnsthefilenamepa
  • Obtain file permissions fileperms

    fileperms

    Obtainfilepermission
  • Find file paths that match patterns glob

    glob

    Findfilepathsthatmat
  • Open process file pointer popen

    popen

    Openprocessfilepoint
  • Format input from a file fscanf

    fscanf

    Formatinputfromafile
  • Create a hard connection link

    link

    Createahardconnectio
  • Read a line from a file pointer fgets

    fgets

    Readalinefromafilepo
  • Determine whether the given file name is a normal file is_file

    is_file

    Determinewhethertheg
Popular Articles