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
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.