PHP Classes

File: demo.php

Recommend this page to a friend!
  Classes of Mohamed Elkholy   File Size Helper   demo.php   Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: Demo file
Class: File Size Helper
Determine the file size even if is larger than 2GB
Author: By
Last change:
Date: 12 years ago
Size: 277 bytes
 

Contents

Class file image Download
<?php

require ("filesizeHelper.php");

$filesizeHelper = new FilesizeHelper();

$file = 'c:\Just.A.Very.Large.File.avi';
//$file = "/media/disk-1/Just.A.Very.Large.File.avi";

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

echo
"<pre>";

var_dump($filesize);