How to use diskfreespace in PHP Filesystem
In this article I am going to explain about diskfreespace function in PHP.
PHP diskfreespace() function
The filesystem diskfreespace function is also used to returns available space in directory. It is an alias of disk_free_space.
Syntax of diskfreespace function
disk_free_space(directoryName) |
Parameters in diskfreespace function
It has only one parameter:
Parameter |
Description |
directoryName |
It specifies directory name. |
Example of filesystem disk_free_space function
<html>
<body>
<?php
echo "Free space in Disk C is ";
echo diskfreespace("C:");
echo "</br>";
echo "Free space in Disk D is ";
echo diskfreespace("D:");
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here