Adding a "delete on" option to a photo gallery web app

MBony

Platinum Member
Sep 16, 2003
2,990
0
76
I have a photo gallery web app that I would like to add this option to. When users upload the photos they have the option to say how long it will stay on the server. They can specify a specific date or just say it is temporary and have it delete the album in 30 days. It is written in php.

Similar to what drop.io does.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Ok, so what are you asking? How to do it? Any time you need something to happen out-of-channel from a typical user request, you have two basic options: 1) have a service or process that is scheduled to kick off periodically and check for matching conditions, then perform the task; or 2) occasionally hijack a user request and use that to perform the maintenance. If the maintenance is very simple and fast then (2) might be acceptable, otherwise it's (1).