Rumah  >  Artikel  >  pembangunan bahagian belakang  >  php disk_free_space与disk_total_space 函数_PHP教程

php disk_free_space与disk_total_space 函数_PHP教程

WBOY
WBOYasal
2016-07-20 11:00:361124semak imbas

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>是一样的吧。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/445503.htmlTechArticlephp disk_free_space 函数与disk_total_space 函数教程,第一个函数是指函数返回的空间,以字节为单位,在指定的目录,而disk_total_space 函数返回的总...
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:PHP file()函数_PHP教程Artikel seterusnya:php chgrp() 函数_PHP教程