Home Tutorial Php Phpfiles PHP find free space, php disk_free_space, disk_free_space

 
 

Share on Google+Share on Google+
PHP find free space, php disk_free_space, disk_free_space
Posted on: September 21, 2009 at 12:00 AM
Advertisement
Learn how to use disk_free_space() function in PHP.

The example Shows of disk_free_space() function in php Program. In this section you will find the example code of disk_free_space() function.

The disk_free_space() function in PHP is used to find the Hard Disk's free space from the PHP program. The disk_free_space()  function returns the available free space in the bytes.

syntax of disk_free_space() function in PHP

disk_free_space(directory_path)

It gives the free space present on the disk in bytes. It works in php4 and php5. 

Here is the code example.

Code for disk_free_space() function in PHP

<?php

$space1=disk_free_space("c:\\xampp");

echo $space1;

?>

Output

57459314688

 

Advertisement

Related Tags for PHP find free space, php disk_free_space, disk_free_space:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 21, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com