
May 1st, 2001, 03:20 PM
|
|
Junior Member
|
|
Join Date: May 2001
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I have built an e-greeting card engine using a simple database script and form-mailer. My problem is this...
Each greeting card that is sent creates a new .txt file on my server which stores variables. These text files are quickly adding up as popularity of my site increases, and I'm afraid that the burden of deleting the files to keep the server size down will quickly become too large of a task.
Is there a way to have my .cgi program check the directory for old files (30 days or more) and delete them?
This could either be a separate .cgi script that I can execute once a month, or preferrably some code to insert into my current .cgi that will perform this task each time a user generates a card.
Any help would be VERY appreciated!
Regards,
JabezStone
|