diskfreespace php, Find free disk space from PHP program


 

diskfreespace php, Find free disk space from PHP program

Find the free disk space in PHP Program. This example shows you how to find the free disk space using diskfreespace() function in PHP.

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

 

Ads