/    Sign up×
Community /Pin to ProfileBookmark

Removing Files in Database Every 24 hours

I have a CMS that is used for clients to test it out, but every 24 hours I wish to remove the content so each day is fresh for a the next client to use. Of even every one hour. How can I easily do this? I know a little sql/php but not too much. Any help would be greatly appreciated.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@trymbillJan 06.2009 — If you have root access to the server you can setup a CRON job to do this for you.

http://en.wikipedia.org/wiki/Cron
Copy linkTweet thisAlerts:
@1234567890authorJan 06.2009 — Would you be able to provide docs on this specific cron?
Copy linkTweet thisAlerts:
@SyCoJan 06.2009 — cron only trigger the script to run. You first need to get a script working that performs this task. Then using cron you can have it run at intervals.
Copy linkTweet thisAlerts:
@1234567890authorJan 11.2009 — Does anyone know how to create such a cron script?
×

Success!

Help @1234567890 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...