
- PHP 7 Tutorial
- PHP 7 - Home
- PHP 7 - Introduction
- PHP 7 - Performance
- PHP 7 - Environment Setup
- PHP 7 - Scalar Type Declarations
- PHP 7 - Return Type Declarations
- PHP 7 - Null Coalescing Operator
- PHP 7 - Spaceship Operator
- PHP 7 - Constant Arrays
- PHP 7 - Anonymous Classes
- PHP 7 - Closure::call()
- PHP 7 - Filtered unserialize()
- PHP 7 - IntlChar
- PHP 7 - CSPRNG
- PHP 7 - Expectations
- PHP 7 - use Statement
- PHP 7 - Error Handling
- PHP 7 - Integer Division
- PHP 7 - Session Options
- PHP 7 - Deprecated Features
- PHP 7 - Removed Extensions & SAPIs
- PHP 7 Useful Resources
- PHP 7 - Quick Guide
- PHP 7 - Useful Resources
- PHP 7 - Discussion
disk_free_space() function in PHP
The disk_free_space() function returns directory’s free space in bytes.
Syntax
disk_free_space(dir_name);
Parameters
dir_name − Specify the name of the directory.
Return
The disk_free_space() function returns bytes of available space in a file. It returns false on failure.
Example
<?php echo disk_free_space("/home/"); ?>
Output
832806768640
- Related Articles
- Find free disk space using Java
- Find free disk space using C#
- Tracking Down Where Disk Space Has Gone on Linux
- C# Program to get free space in a drive
- Get the free space of this partition in Java
- PHP Global space
- What is a free function in C++?
- Can I query how much disk space certain rows or columns are taking up in MySQL?
- Checking data disk, log disk and Trace disk in SAP HANA
- strcmp() function in PHP
- strcoll() function in PHP
- strcspn() function in PHP
- strip_tags() function in PHP
- stripcslashes() function in PHP
- stripos() function in PHP()
- stristr() function in PHP

Advertisements