Login   Register  
PHP Classes
elePHPant
Icontem

al_print_f: Serve file for download limiting the transfer rate

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-08-30 (8 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 919 All time: 3,583 This week: 1,735Up
Version License Categories  
al_print_f 1.0Proprietary License wit...HTTP, Files and Folders
Description Author  

This is a simple class can be used to serve files for download limiting the transfer rate to a given threshold.

The class can serve a given file generating content-type header according to the file name extension. The content-length header is set to file size.

The class serves the file in chunks. It calculates the size of each chunk according to the configured download speed. After serving a chunk, the class waits for one second to make sure the download speed does not exceed the desired speed limit.

Picture of Emad Aldeen Hajjar
Name: Emad Aldeen Hajjar <contact>
Classes: 1 package by
Country: Syria Syria
Age: 27
All time rank: 22194 in Syria Syria
Week rank: 1821 Up5 in Syria Syria Down

Screenshots  
  • transfer_rate.PNG
  Files folder image Files  
File Role Description
Plain text file class_file.php Class class file
Accessible without login Plain text file download.php Example test class
Accessible without login Plain text file license.html Data License

 Version Control Unique User Downloads Download Rankings  
 0%Total:919All time:3,583
 This week:0This week:1,735Up