| Recommend this page to a friend! |
| All class groups | > | All authors | > | Packages of Dmitry Stroganov (2) | > | Mission progress status | > | Reputation |
|
||||||||||||||||||||||||||||||
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| ||||
| This class can scan directories to detect modified files. It can traverse given directories recursively to retrieve the list of files and their last modification dates and content hashes. The class queries a MySQL database table to check if each of the found file is already in the scanned database table. It will insert table records for each new file that is found. If any files that were already recorded had the hash value changed, the class will send a notification to a given email address to notify file changes. The class may exclude certain directories and files from the scan process. |
| ||||
| This class can store and retrieve the current page from a cache file. It can compute an hash from the current page request URL to determine the name of a cache file on which the current page content will be stored. The class returns the the cache file contents if it already exists and if it was not created more than a given cache expiry timeout period. Otherwise the class can create a new cache file using the same file name based on the current request URL. The cache file directory path is based on the first letter of the cache file name and the base cache file path. If the cache directory does not exist, the class creates it. The cache file base directory path and the expiry time are configurable parameters. |
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |