Disk_free_space-return the available space in the directory

Source: Internet
Author: User

Disk_free_space
("= 4.1.0, PHP 5" in PHP 4)



Description
Float disk_free_space (string $ directory)
Given that a string contains a directory, this function provides the corresponding file or partition for the number of bytes returned.

Parameters

Directory
Directory file or partition.

Note: Because the file name is not a directory, the behavior function is unknown and may be different operating systems and PHP versions.



Return value
Returns some available bytes as float.

Instance

Example #1 disk_free_space ()

<? Php
// $ Df contains the number of bytes available on "/"
$ Df = disk_free_space ("/");

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

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.