Page 1 of 1
Updating database every 15 minutes.
Posted: Sat Mar 22, 2008 7:36 am
by silverpanda
Hi, developers.
I have a problem while developing a website.
The database of this site should be updated every 15 minutes regardless clients visit or not.
how can the database be updated periodically without clients' visiting of pages?
I am wondering cPanel has such ability. but not sure and can't find such ability.
Please help.
Thank you.
Re: Updating database every 15 minutes.
Posted: Sat Mar 22, 2008 8:37 am
by tabatsoy
hi!
i'm also new to php but i suggest you put a counter or timer that for every 15mins. you should run a query.
i hope that helps
Re: Updating database every 15 minutes.
Posted: Sat Mar 22, 2008 9:11 am
by silverpanda
Sorry, but i asked how to update database whether or not anyone visit the website.
every 15 minutes.
anyway, thank you for your reply.
Re: Updating database every 15 minutes.
Posted: Sat Mar 22, 2008 11:35 am
by pickle
You want a cron job that runs a PHP/Perl/server-side script every 15 minutes. That script is what will update the database. As far as I know, CPanel uses the term "cron job", as it should.
Re: Updating database every 15 minutes.
Posted: Sat Mar 22, 2008 8:24 pm
by califdon
silverpanda wrote:Hi, developers.
I have a problem while developing a website.
The database of this site should be updated every 15 minutes regardless clients visit or not.
how can the database be updated periodically without clients' visiting of pages?
I am wondering cPanel has such ability. but not sure and can't find such ability.
Please help.
Thank you.
Somehow the idea of "updating a database" when there has been no activity seems quite odd to me. Maybe you have a good reason for doing this, but I'd be interested to know why you need to do it. What is being updated??
EDIT: You just posted the same question 2 minutes before this one. That is really discouraged here!