• PHP Video Tutorials

PHP - Function diskfreespace()



The diskfreespace() function can return the free space of the specified directory in bytes. This function is an alias of the disk_free_space() function.

Syntax

diskfreespace(directory)

Example

<?php
   echo diskfreespace("C:");
   echo "\n";
   echo diskfreespace("E:");
?>

Output

224159571968
209571344384
php_function_reference.htm
Advertisements