At 9:35 AM +0100 3/13/08, 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?

Thanks in advance

Steven


Steven:

Are you saying that if images exist in your database AND appear in the file system, then don't delete them?

Why not give your approved images a prefix and just delete everything that doesn't via a cron?

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to