Page 1 of 1
Scheduled script activation....(question)
Posted: Sun May 18, 2003 12:55 am
by Alzeric
Well i'm not really sure of the proper terminology for this, but I'm interested in how to have a certain script ran at a certain time during the day. (ie. have a update script ran that would cycle through my database for all my users and preform certain actions on their accounts, such as add action points for a game taht are replenished every x ammnt of min/hrs)
~Alzeric
I think you need CRON!
Posted: Sun May 18, 2003 2:46 am
by mikeT
This is a great article on cron...
http://www.htmlcenter.com/tutorials...ls.cfm/155/PHP/
I have had no problems using the "Apache Module" method described here..
good luck!
Posted: Sun May 18, 2003 1:56 pm
by Alzeric
I got a bad link going there, does this work on ISS as well?
Posted: Sun May 18, 2003 4:49 pm
by patrikG
You will need to run a cron-job - i.e. a server-side timed-execution program that calls and executes scripts at a certain interval.
Posted: Sun May 18, 2003 6:38 pm
by m3mn0n
If you are running windows...
Start > Programs > Accessories > System Tools > Scheduled Tasks > Add new task
I suggest adding a
.url file so it opens the link in IE instead of an editor for php.
These types of files can be found by adding the site you want to open to your Favorites, which will create a
.url file with that site as the destination, and all you need to do is point the
Add new task wizard to that file.
And you might need some javascript to close the window automatically. Sometimes instead of opening in the current window this tool might spawn new windows on every interval.
Gatta love the simplicity of Windows.

Posted: Sun May 18, 2003 8:52 pm
by Alzeric
great thx for the help, I'll worry about cron later on once I leave the development stage and go live on a hosted server.
~Alzeric