PHP Classes


Recommend this page to a friend!
  Classes of Roger George   PHP Web Site Compare Files   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Web Site Compare Files
Compare the list of files of two Web sites
Author: By
Last change: Update of
Date: 1 year ago
Size: 944 bytes


Class file image Download


Compare similar website files. Shows missing files, different files (modified date / size), and files modified in the last 7 days.

Last Updated = 7/25/16 Created By: Blastroid


Copy the file_list.php file to the root directory of 2 websites you want to compare.

Use the following code:

$compare = new compareFolders('http://URL1/file_list.php', 'http://URL2/file_list.php');

Where it says URL1 change to the website #1 URL

Where it says URL2 change to the website #1 URL

Optional paremeters are naming the 2 website paths (Defaults are URL1, and URL2). Example:

$compare = new compareFolders('http://URL1/file_list.php', 'http://URL2/file_list.php', 'Website 1', 'Website 2');

Run the class where you want the 3 HTML tables to be written.

Note: In the compare_file.php you can add to the array $ignoreFiles to ignore files.

See for more information.