Heim  >  Artikel  >  php教程  >  php disk_free_space与disk_total_space 函数

php disk_free_space与disk_total_space 函数

WBOY
WBOYOriginal
2016-06-13 11:16:521139Durchsuche

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

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

语法:

<strong>disk_free_space</strong>(directory)
我们来看看disk_free_space实例吧。

<!--?phpecho disk_free_space("C:");?-->
 
输出你硬盘大小。
 
12312312313
 
下面再来看看disk_total_space函数的教程。
 


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

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:php常用数据函数Nächster Artikel:php strpos 用法实例教程