LBJuice Posted January 7, 2007 Share Posted January 7, 2007 I'll explain this in a relative example. I'm making a php eBay template generator and I want to have it so users can upload their auction photos and I'll host them free for 40 days. After those 40 days however, the server will automatically delete them. I figured I would place all the user photos in unique sub directories, randomly generated each session. For example:/Uploads../FUWLN2.../Pic001.jpg.../Pic002.jpg../UDHE34.../Pic001.jpg.../Pic002.jpgThen in a MySQL database, have a table saying "FUWLN2" should be terminated on: 2/10/07 and "UDHE34" should be terminated on 2/21/07 and so on.I want to know if there is a way to have the sever check this daily or in regular intervals, without user intervention. I know I could have this script ran each time a user enters the page, but that creates overhead, and I want to do this efficiently. Link to comment https://forums.phpfreaks.com/topic/33254-php-server-maintenance/ Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 You'll want to use *nix's cron to run a daily [i]job[/i]. Link to comment https://forums.phpfreaks.com/topic/33254-php-server-maintenance/#findComment-155290 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.