- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
Advertisements