View previous topic :: View next topic |
Author |
Message |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Sun Aug 14, 2005 11:47 pm Post subject: Running a PHP script as a scheduled task |
|
|
How would I go about running a PHP script as a scheduled task under Windows XP Home. Also, how would I make it so that it ran hourly?
Sorry if this has been covered before but I couldn't find anything when I ran a search. _________________ Olly |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Mon Aug 15, 2005 12:13 am Post subject: Re: Running a PHP script as a scheduled task |
|
|
olly86 wrote: | How would I go about running a PHP script as a scheduled task under Windows XP Home. Also, how would I make it so that it ran hourly?
Sorry if this has been covered before but I couldn't find anything when I ran a search. |
For the game I had on my server before it killed itself I user a program called 'Kirby alarm' which a friend found for me to run a batch file which executed the ticker script. _________________
|
|
Back to top |
|
|
k1ll3rdr4g0n -
Joined: 04 Jul 2004 Posts: 609
|
Posted: Mon Aug 15, 2005 2:50 am Post subject: |
|
|
Errr..
Start -> All Programs -> Accessories -> System Tools -> Schudeled Tasks.
I believe the command line would be something like this:
Code: | c:\php\php.exe /path/to/your/script/script.php |
Prehaps put it in a batch file?
There is a command line way to add it to Schudeled Tasks but I don't know it off the top of my head. _________________
|
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Mon Aug 15, 2005 4:12 am Post subject: |
|
|
k1ll3rdr4g0n wrote: | Errr..
Start -> All Programs -> Accessories -> System Tools -> Schudeled Tasks.
I believe the command line would be something like this:
Code: | c:\php\php.exe /path/to/your/script/script.php |
Prehaps put it in a batch file?
There is a command line way to add it to Schudeled Tasks but I don't know it off the top of my head. |
A scheduled task can only be run once a day, the game had 30 minute ticks, so I had to look elsewhere. Windows could do on improving that. _________________
|
|
Back to top |
|
|
k1ll3rdr4g0n -
Joined: 04 Jul 2004 Posts: 609
|
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Aug 15, 2005 2:19 pm Post subject: |
|
|
Have a look on the command at. It is available with Windows NT/2000/XP/2003 and have more options that the scheduled tasks tool. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|