Login   Register  
PHP Classes
elePHPant
Icontem

BinPacker

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Zafar Iqbal
Name: Zafar Iqbal is available for providing paid consulting. Contact Zafar Iqbal .
Packages: 8 Browse all classes by Zafar Iqbal Browse all classes by
Country: Greece Greece - PHP jobs in Greece
Age: 39
All time rank: 3024 in Greece Greece
Week rank: 216 Up2 in Greece Greece Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download .zip .tar.gz  
The purpose of this class is to copy or move the files to a set of directories, so that the total size of all files in each directory does not exceed a given size limit.

It can can be quite handy in situations where you need to transfer an huge amount of files, which would be a tedious job to perform manually.

This kind of problem is also known as bin packing. Current, this class only solves this problem partially.

  Classes of Zafar Iqbal  >  BinPacker  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: BinPacker
Base name: binpacker
Description: Pack files without exceeding a given size limit
Version: -
PHP version: -
License: GNU General Public License (GPL)
All time users: 1333 users
All time rank: 2543
Week users: 3 users
Week rank: 923 Up
 
  Groups   Rate classes User ratings   Applications   Related links   Files Files  

  Groups  
Group folder image Algorithms Numerical and statistical algorithms View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
December 2004
Number 5

Prize: One book of choice by SAMS
When it is necessary to backup a large number files to a type of storage media with a limited size, it may be necessary to use multiple media units to perform a complete backup process.

Since the size of each set of files put in each unit may not fit exactly the media size limit, to avoid splitting a file across multiple units, it may be necessary to redistribute the files to minimize the free space that would be wasted otherwise.

This class implements the bin packing algorithm to perform nearly optimal redistribution of the files that are being copied to target media directories.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (75.0%)
Sufficient (75.0%)
Sufficient (75.0%)
-
-
-
Not sure (52.5%)
1385
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Bin packing problem From Wikipedia, the free encyclopedia
NIST bin packing problem
Wolfram Bin-Packing Problem -- from MathWorld

  Files folder image Files  
File Role Description
Plain text file class-bp.php Class Class source
Accessible without login Plain text file readme.txt Doc. Read Me
Accessible without login Plain text file test.php Aux. Test File

Download all files: binpacker.tar.gz binpacker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.