php disk_free_space function and disk_total_space function tutorial, the first function refers to the space returned by the function, in bytes, in the specified directory, and the disk_total_space function returns the total space
The disk_free_space() function returns the free space, in bytes, in the specified directory.
disk_free_space(directory)
Let’s take a look at the disk_free_space instance.
php // by http://www.manongjc.com/article/1324.html echo disk_free_space("C:"); ?>
Output the size of your hard drive.
12312312313
Let’s take a look at the tutorial on the disk_total_space function.
The disk_total_space() function returns the total space, in bytes, in the specified directory.
disk_total_space(directory)
Example:
php // by http://www.manongjc.com/article/1324.html echo disk_total_space("C:"); ?>
The method is the same as disk_free_space.