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
http://www.bkjia.com/PHPjc/321793.htmlwww.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...