Home  >  Article  >  Backend Development  >  php disk_free_space and disk_total_space functions_PHP tutorial

php disk_free_space and disk_total_space functions_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:00:361124browse

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445503.htmlTechArticlephp 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...
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