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
Definition and usage
The disk_free_space() function returns the free space, in bytes, in the specified directory.
Syntax:
<strong>disk_free_space</strong>(directory)
我们来看看disk_free_space实例吧。
<!--?phpecho disk_free_space("C:");?-->
输出你硬盘大小。
12312312313
下面再来看看disk_total_space函数的教程。
Definition and Usage The disk_total_space() function returns the total space, in bytes, in the specified directory. Grammar
<strong>disk_total_space</strong>(directory)
echo disk_total_space("C:");?>
方法与<strong>disk_free_space</strong>是一样的吧。