Can this be done in PHP?
I want to read a directory and for each file with a .sql extension that is
older than 3 days, I want to delete it.
I have a cron job that makes mysqldump files (xxx.sql) each night and only
want to keep the last 2 or three of them around.
This will also be a cron job (I know how to run a php script in cron.)
I could do this with a rather complex "find" command piped to "rm" but I'd
rather do it in PHP if possible.
Any ideas?
Thanks,
Al