Page 1 of 1
How to update the db continuously?
Posted: Tue May 20, 2008 5:12 pm
by Yourchild
I have a script that updates the database. Everytime a user logs in, it will update the database. I am trying to do the updating every few seconds however...waiting until a user logs in is kind of sloppy. Is there a way I can place this script on the server and have the server run the script continuously without having the website opened by anyone?
Re: How to update the db continuously?
Posted: Tue May 20, 2008 10:14 pm
by califdon
Yourchild wrote:I have a script that updates the database. Everytime a user logs in, it will update the database. I am trying to do the updating every few seconds however...waiting until a user logs in is kind of sloppy. Is there a way I can place this script on the server and have the server run the script continuously without having the website opened by anyone?
Offhand, I can't think of any justifiable reason to update a database when it is not being used. What data are you trying to update?
Re: How to update the db continuously?
Posted: Tue May 20, 2008 11:04 pm
by s.dot
In short, yes there is a way. Several of them!
But it's probably not the best solution you're looking for.
Describe your problem and we can help you come up with
a good solution.
Re: How to update the db continuously?
Posted: Tue May 20, 2008 11:41 pm
by Christopher
Yourchild wrote:Is there a way I can place this script on the server and have the server run the script continuously without having the website opened by anyone?
You can run scripts and programs with cron on any schedule you want. What is your OS?