PHP disk_free_space return directory free space _php base

Source: Internet
Author: User
Usage

Disk_free_space ($path);

Note: This function does not work on remote files, and the files that are checked must be accessed through the server's file system.

function of this function

This function returns the number of bytes available based on the appropriate file system or disk partition

Well the example is very simple let's take a look at the example.
Copy Code code as follows:

<?php
$JB 51net = Disk_free_space ("/");
echo $JB 51net;
?>


Copy Code code as follows:

<?php
$DF contains the number of bytes available under the root directory
$DF = Disk_free_space ("/");
Under Windows:
Disk_free_space ("C:");
Disk_free_space ("D:");
?>

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.