This will be a cron-scheduled PHP script, password protected, not for public viewing. Purely functional. The script will check a MySQL dB to see if a datetime field has been updated within the last 24 hrs. If it has, a flag field will be set to "0". Then photos associated with these entries will be deleted from server. Complete filenames are NOT in the dB; associated photos are named using the dB entry's ID number, such as [login to view URL], [login to view URL], etc., where 76534 is the ID field in the dB. There are varying numbers of images per entry.
## Deliverables
Script should have verbose output since it is not publicly viewable. Screen output should specify things such as success, failure, filenames that will be deleted, and deletion success. Script should exit gracefully if there are no entries that need updating, hence, no files that need to be deleted. The update interval should be easily changeable in the event the cron scheduling needs to be changed, i.e. instead of finding entries that have been updated in the last 1 day, it could be changed to finding entries updated in the past 3 days, or another arbitrary number of days. These buyer changes will be made directly in the code, no "front-end" necessary.
Need working script completed within 24 hours.
PHP v5.2, MySQL v5.