Function To Del Dirs/Files By Date/Age

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toriboy
Forum Newbie
Posts: 5
Joined: Thu Jun 27, 2002 12:18 pm
Location: Fredericton, New Brunswick, Canada
Contact:

Function To Del Dirs/Files By Date/Age

Post by toriboy »

Does anyone know of a function that can do the following (I am not really a programer so can't write one from scratch).

When run : Will delete all files and/or sub-dirs under a directory that are older than a specifed time (like 30 days).

I really need this function, I need to be able to delete directors and files that are older than 30-days. I do not have cron access.


Thanks In Advace
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Hi, I appreciate that you may not be a programmer but unfortunately this is not a script writing service. You may be lucky in that someone has the time to quickly put a function together for you but please be aware that this is not what this forum is about. If you wish to hire someone to write your code please post in the Job Hunt forum. If you did try to write a function from scratch we would be more than happy to help you along with it.

If you are looking for pre-made scripts try http://www.hotscripts.com who have a vast amount of scripts for a number of different purposes.

Mac
Post Reply