Home Tutorial Php Phpfiles diskfreespace php, Find free disk space from PHP program

 
 

diskfreespace php, Find free disk space from PHP program
Posted on: September 21, 2009 at 12:00 AM
Find the free disk space in PHP Program. This example shows you how to find the free disk space using diskfreespace() function in PHP.

The Example of freediskspace() function in php. The following examples we will shows how you can find the free disk space from your php program.

Description about freediskspace() Function PHP

syntax

diskfreespace(directory_path)

gives the free space present on the disk in bytes

works same as the function disk_free_space()

works in php4 and php5

Code for freediskspace() Function PHP

<?php

$space3=diskfreespace("c:\\xampp");

echo $space3;

?>

Output

57459314688

 

Related Tags for diskfreespace php, Find free disk space from PHP program:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.