Home > Backend Development > PHP Tutorial > php disk_free_space returns the directory free space_PHP tutorial

php disk_free_space returns the directory free space_PHP tutorial

WBOY
Release: 2016-07-21 15:38:13
Original
950 people have browsed it

Usage

disk_free_space($path);

Note: This function cannot be used on remote files. The files being checked must be accessed through the server's file system.

What this function does

This function will return the number of available bytes according to the corresponding file system or disk partition

Okay, the example is very simple. Let’s take a look at the example. Go.

Copy the code The code is as follows:

$jb51net = disk_free_space("/") ;
echo $jb51net;
?>


Copy code The code is as follows:

// $df contains the number of bytes available in the root directory
$df = disk_free_space("/");
//Under Windows:
disk_free_space("C:");
disk_free_space("D:");
?>

Returns the number of bytes available for the file system or disk partition

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321793.htmlTechArticleUsage disk_free_space($path); Note: This function cannot be used on remote files, and the files being checked must pass through the server file system access. Function of this function This function will be based on the corresponding text...
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