Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 250 | All time: 7,812 This week: 370 |
Version | License | PHP version | Categories | |||
file-size-helper 1.0 | GNU Lesser Genera... | 5 | PHP 5, Files and Folders |
Description | Author | ||||||||||||||
This class can determine the file size even if is larger than 2GB. |
|
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 |
Files |
File | Role | Description |
---|---|---|
filesizeHelper.php | Class | FileSizeHelper class source |
readme.txt | Doc. | Documentation & Usage information |
demo.php | Example | Demo file |
license.txt | Lic. | License file |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.