Home> php教程> php手册> body text

php disk_free_space与disk_total_space 函数

WBOY
Release: 2016-06-13 11:16:52
Original
1104 people have browsed it

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

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

语法:

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

         
Copy after login
Copy after login
Copy after login

             
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
输出你硬盘大小。
Copy after login

             
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
12312312313
Copy after login

             
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
下面再来看看disk_total_space函数的教程。
Copy after login

             
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login

         
Copy after login
Copy after login

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

disk_total_space(directory)
Copy after login

             
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
echo disk_total_space("C:");?>
Copy after login

             
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
Copy after login
方法与disk_free_space是一样的吧。
Copy after login

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!