PHP Duplicate Files Finder: Find files with the same contents

Recommend this page to a friend!
  Info   View files (2)   Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
65%Total: 871 This week: 1All time: 3,987 This week: 255
Version License PHP version Categories
duplicate-files-find 1Free for non-comm...5PHP 5, Utilities and Tools, Files and...
Description Author

This class can be used to find files with the same contents.

It can traverse a given directory recursively and compute the MD5 hash of all the files that it finds.

The class returns the list of files that have the same contents based on having the same MD5 hash value.

Innovation Award
PHP Programming Innovation award nominee
May 2010
Number 5
Some times you have multiple copies of the same files, probably in different directories, that you would like to find in order to eliminate the copies.

This class implements an efficient solution to find files with duplicated content. It uses MD5 hashes to determine which files have the same contents.

Manuel Lemos
Picture of Er. Rochak Chauhan
  Performance   Level  
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Classes: 53 packages by
Country: India India
Age: 41
All time rank: 21 in India India
Week rank: 19 2 in India India
Innovation award
Innovation award
Nominee: 14x

Winner: 3x

File Role Description
phpDuplicateFilesFinder.php Class Class
usage.php Example Example Script

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:3,987
This week:255
User Ratings User Comments (3)
 All time
Changed the parseDirectory function to : function parseDirect...
3 years ago (Felix Mrdx)
Great and effective tool which really helped me with my tasks.
7 years ago (Maciej Naumienko)
This is a good class ! lol
10 years ago (Josť Filipe Lopes Santos)

For more information send a message to info at phpclasses dot org.