Home  >  Article  >  php教程  >  php disk_free_space与disk_total_space 函数

php disk_free_space与disk_total_space 函数

WBOY
WBOYOriginal
2016-06-13 11:16:521075browse

php disk_free_space 函数与disk_total_space 函数教程,第一个函数是指函数返回的空间,以字节为单位,在指定的目录,而disk_total_space 函数返回的总空间  

定义和用法
disk_free_space ( )函数返回的自由空间,以字节为单位,在指定的目录。

语法:

disk_free_space(directory)
我们来看看disk_free_space实例吧。

 
输出你硬盘大小。
 
12312312313
 
下面再来看看disk_total_space函数的教程。
 


定义和用法 该disk_total_space ( )函数返回的总空间,以字节为单位,在指定的目录。 语法

disk_total_space(directory)
 
echo disk_total_space("C:");?>
 
方法与disk_free_space是一样的吧。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php常用数据函数Next article:php strpos 用法实例教程