PHP diskfreespace() Function

Definition

The diskfreespace() function returns the free space, in bytes, of the specified directory.

This function is an alias of the disk_free_space() function.

Syntax

PHP diskfreespace() Function has the following syntax.

diskfreespace(directory)

Parameter

ParameterIs RequiredDescription
directoryRequired.Directory to check

Example


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

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions