[PHP] Re: php cron to check and remove files

2008-03-13 Thread Shawn McKenzie
Steven Macintyre wrote: > Hi, > > I need to be able to do the following procedure; > > retrieve all items from a mysql db table, then check to see if the files from > that table exist on the server (images), if not, to "clean up" and remove the > physical file - so that only the files from the

[PHP] Re: php cron to check and remove files

2008-03-13 Thread Al
I handle your object a different and, I believe, a simpler way. Instead of a cronjob, I call a cleanup function whenever a page is opened. Obviously, this approach requires a time overhead and thus is not good for very high volume sites. You can mitigate this drawback by maintaining a simple t