PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Roger George   PHP Web Site Compare Files   README.md   Download  
File: README.md
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 README.md
Date: 1 year ago
Size: 944 bytes
 

Contents

Class file image Download

PHP_Compare_Website_Files

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

http://bwat.info/

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

Instructions:

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 http://bwat.info/ for more information.