PHP Classes
elePHPant
Icontem

PHP Check Folder for New Files: Watch folder and send email when new files appear

Recommend this page to a friend!

  Author Author  
Name: Dawood Ikhlaq <contact>
Classes: 6 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 3x


  Detailed description   Download Download .zip .tar.gz  
This package can be used to watch a folder and send email when new files appear.

It can take the path of a given directory and checks the time of the last change of all files in the directory to get the list of all files that were changed since the last time this checking procedure was performed.

The class sends an email message for each of the files that were added or changed in the directory.

It stores in a control file the time of when each check was performed, so next time the check is done again it can compare that time with the time of last change done on each of the files present in the directory.

Details

DirTracker

Simple PHP Package To Track The Directory For New Files and If New File Has Been Detected It Sends Email To Admin

Installation

git clone https://github.com/daudmalik06/DirTracker
cd DirTracker
composer install
cp .env.example .env
set SMTP credentials in .env file and other variables

Usage

php track.php /path/to/dir


  Classes of Dawood Ikhlaq  >  PHP Check Folder for New Files  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  

 

Name: PHP Check Folder for New Files
Base name: dirtracker
Description: Watch folder and send email when new files appear
Version: -
PHP version: 5
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image System information Information about servers, processes and operating system facilities View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (3 files)
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file last_timestamp Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file track.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file DirTrack.php Class Class source
  Accessible without login Plain text file helper.php Aux. Auxiliary script
  Accessible without login Plain text file last_timestamp Data Auxiliary data

Download Download all files: dirtracker.tar.gz dirtracker.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.