PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of John Rutherford   PHP Path Difference   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Path Difference
Analyze directories and find new or changed files
Author: By
Last change:
Date: 6 years ago
Size: 1,574 bytes
 

Contents

Class file image Download

Analyze Path Differences

Introduction:

Have you ever wondered what files have been newly created, last modified or even deleted?

Look no further - this is the App' for that :)

Snapshot Class

  • A simple Class that interrogates all files in a site path.
  • File contents are hashed and a "snapshot" saved to a dynamically created database table.
  • Unfortunately folder names must be "fixed" to in order to conform :)
  • Any time afterwards the "snapshot" can be compared against the current files.
  • All discrepancies are shown which facilitates finding problematic files.
  • A new "snapshot" can be created once all discrepances have been resolved.

Analysis Path Difference Results:

* Amended files
* Deleted files
* New files

Installation:

1. Download and extract any of the following zip files into a new LOCALHOST "folder-name":
2. source.zip source.tar.xz source.7z
3. Use PhpMyAdmin to create a "DB_HOST" Database named "DB_NAME"
4. Set Database permissions for:
    * "DB_USER"
    * "DB_PWD"
5. Edit:   _config.php
    * Set Database values for: DB_HOST, DB_USER, DB_PWD, DB_NAME
    More paths may be added to the "folder-name" path and its parent*
    * Browse to "folder-name"/index.php
    * Test thoroughly and once satisfied upload to your online site.

Online Demo

Screen Shot