PHP Classes

al_print_f: Serve file for download limiting the transfer rate

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 947 All time: 3,799 This week: 488Up
Version License Categories
al_print_f 1.0Proprietary Licen...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
  Performance   Level  
Name: Emad Aldeen Hajjar <contact>
Classes: 1 package by
Country: Syria Syria
Age: 37
All time rank: 24393 in Syria Syria
Week rank: 216 Up1 in Syria Syria Up

Screenshots (1)  
  • transfer_rate.PNG
  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:947
This week:0
All time:3,799
This week:488Up