Download .zip |
Info | View files (3) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2005-01-02 (12 years ago) | 56% | Total: 1,544 | All time: 2,474 This week: 743 |
Version | License | Categories | ||||
binpacker 1.0.0 | GNU General Publi... | Algorithms, PHP 5, Files and Folders |
Description | Author | ||||||||||||||||
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. Innovation Award
|
|
Bin Packer Class ================ Description ----------- Given a set of directories/files and a bin size, copy/move the files to a set of directories so that the total size of all files in each directory does not exceed the bin size. Can be quite handy in situations where you need to transfer HUGE amounts of files and are fed up with counting bytes and you just wanna drag, drop and burn. Something to remember (you may not notice but...) If 2 files are the same then only one is transferred. If you don't like this feature then copy,paste rename afterwards. Tested with PHP 5 on Linux and Windows. Disclaimer ---------- This Class does not solve the Bin Packing Problem. It just tries for the 22% ;) If anyone is interested in the algorithm then get in touch. Bed time reading: http://www.nist.gov/dads/HTML/binpacking.html http://mathworld.wolfram.com/Bin-PackingProblem.html And finally - BACKUP YOUR DATA BEFORE USE ;) 2004-12-21 ultrasine@gmail.com |
Files |
File | Role | Description |
---|---|---|
class-bp.php | Class | Class source |
readme.txt | Doc. | Read Me |
test.php | Aux. | Test File |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Bin packing problem From Wikipedia, the free encyclopedia |
NIST bin packing problem |
Wolfram Bin-Packing Problem -- from MathWorld |