Re: php cron to check and remove files
| From: | Aschwin Wesselius | Date: | Thu, 13 Mar 2008 08:47:48 +0000 |
| Subject: | Re: php cron to check and remove files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271481@lists.php.net to get a copy of this message | ||
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 db exist. This will run via cron Has anyone done something similar before, willing to assist me with a basic scope of actions to work on?Hi, Do you already have some code? Do you got stuck somewhere? Aschwin Wesselius