Login   Register  
PHP Classes
elePHPant
Icontem

File: readme.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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
 

Contents

Class file image Download
FileSizeHelper
==================

## 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

<?php

require ("filesizeHelper.php");

$filesizeHelper = new FilesizeHelper();

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

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

var_dump($filesize);

?>

## Updates & Bugs

To see more details about latest release & bugs, go to this URL:
https://github.com/blasten/turn.js/issue

## Changelog

v1.0
	- initial release