disk_total_space
Description
The disk_total_space of Filesystem for PHP returns the total size of a filesystem or disk partition.
Syntax
disk_total_space(string $directory): float|false
Parameters
directory
A directory of the filesystem or disk partition.
Return
Returns the total number of bytes as a float or false on failure.
Examples
1
<? $directory = "/"; $return = disk_total_space($directory); echo $return;
938038476800
2 · windows
<? $directory = "C:"; $return = disk_total_space($directory); echo $return;
938038476800
Links
Related
Filesystem
- basename
- chgrp
- chmod
- chown
- clearstatcache
- copy
- dirname
- disk_free_space
- diskfreespace
- fclose
- feof
- fflush
- fgetc
- fgetcsv
- fgets
- file
- file_exists
- file_get_contents
- file_put_contents
- fileatime
- filectime
- filegroup
- fileinode
- filemtime
- fileowner
- fileperms
- filesize
- filetype
- flock
- fnmatch
- fopen
- fpassthru
- fputcsv
- fputs
- fread
- fscanf
- fseek
- fstat
- ftell
- ftruncate
- fwrite
- glob
- is_dir
- is_executable
- is_file
- is_link
- is_readable
- is_uploaded_file
- is_writable
- is_writeable
- lchgrp
- lchown
- link
- linkinfo
- lstat
- mkdir
- move_uploaded_file
- pathinfo
- pclose
- popen
- readfile
- readlink
- realpath
- realpath_cache_get
- realpath_cache_size
- rename
- rewind
- rmdir
- set_file_buffer
- stat
- symlink
- tempnam
- tmpfile
- touch
- umask
- unlink