PHP - Function diskfreespace()


Advertisements


Syntax

float diskfreespace ( string $directory );

Definition and Usage

This function is an alias of: disk_free_space().

Parameters

Sr.No Parameter & Description
1

directory

A directory of the filesystem or disk partition.

Return Value

It returns the base name of the given path.

Example

Following is the usage of this function −

<?php
   $hdwinC = diskfreespace("C:");
   echo "Diskspace left on C: $hdwinC";
?>

php_function_reference.htm

Advertisements