PHP Classes

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Mohamed Elkholy  >  File Size Helper  >  readme.txt  >  Download  
File: readme.txt
Role: Documentation
Content type: text/plain
Description: Documentation & Usage information
Class: File Size Helper
Determine the file size even if is larger than 2GB
Author: By
Last change:
Date: 2 years ago
Size: 973 bytes


Class file image Download

## Class for manipulating large files (bigger than 2GB)

This class detects the real file size of a specified file even if the 
file size is begger than 2GB, the class also able to format the resulted
file size in KB, MB, GB, TB units which make it more readable.

The class uses several methods to detect bigger file sizes:
 1. The native filesize() function
 2. Using the cURL module
 3. Using the php native seek function
 4. Windows COM interface (on windows server)
 5. Using external program (exec() function needed)

## Usage


require ("filesizeHelper.php");

$filesizeHelper = new FilesizeHelper();

$file = 'c:\Just.A.Very.Large.File.avi';

$filesize = $filesizeHelper->getFileSize($file);



## Updates & Bugs

To see more details about latest release & bugs, go to this URL:

## Changelog

	- initial release