Home Tutorial Php Phpfiles Find total disk space in PHP, php disk_total_space, disk_total_space

 
 

Find total disk space in PHP, php disk_total_space, disk_total_space
Posted on: September 21, 2009 at 12:00 AM
How to find the total disk space in PHP program. Learn how you can use disk_total_space() function in PHP to find the total disk space.

Learn How to Get the total disk space in PHP Program.

In this PHP Tutorial example we will use the disk_total_space() function in our PHP code to find the total disk space.

syntax disk_total_space() Function PHP

disk_total_space(directory_path)

Gives the total space present on the disk in bytes in the specified directory.

Code for disk_total_space() Function PHP

<?php

$space2=disk_total_space("c:\\xampp");

echo $space2;

?>

Output

83889594368

 

Related Tags for Find total disk space in PHP, php disk_total_space, disk_total_space:


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.