disk_free_space - Returns free space in a directory_PHP Tutorial

WBOY
Release: 2016-07-20 11:00:53
Original
1013 people have browsed it

disk_free_space - Returns free space in a directory ​

disk_free_space
(PHP 4" = 4.1.0, PHP 5)

disk_free_space - Returns free space in a directory

Description
float disk_free_space (String $directory)
Given that a string contains a directory, the function will return the number of bytes provided for the corresponding file or partition.

Parameters

Table of contents
Directory of files or partitions.

Note: Since the filename is not a directory, the behavior of the function is unknown and may differ between operating systems and PHP versions.



Return value
Return some available bytes as float.

Example

Example #1 disk_free_space() example

// $df contains the number of bytes available on "/"
$df = disk_free_space("/");

// On Windows:
disk_free_space("C:");
disk_free_space("D:");
?>


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445484.htmlTechArticledisk_free_space - Returns the free space in the directory disk_free_space (PHP 4 = 4.1.0, PHP 5) disk_free_space - Returns the free space description in the directory float disk_free_space (word...
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 Tutorials
More>
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!