Knowledge Base

Home > How To > How To calculate the used space

Created 26 Apr 2005
Modified 24 Jan 2006
Hits 54811

Print Print Article

File Article 2552

How To calculate the used space

Calculating the used disk space on a remote server requires all folders to be recursively enumerated. This is a very inefficient task if done through FTP. It's easier to write a small script (PHP, ASP, etc) which runs directly on the server to achieve the same result.

Example scripts are provided for PHP and ASP.

PHPDiskUsage.php
ASPDiskUsage.asp

Keywords
space, size, total, calculate, recursively

Related Articles


Please choose 1 to 5 whether this article solves your problem.

1 No Help at all

5 Problem Solved