Running a PHP script as a scheduled task

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
olly86
-


Joined: 25 Apr 2003
Posts: 993
Location: Wiltshire, UK

PostPosted: Sun Aug 14, 2005 11:47 pm    Post subject: Running a PHP script as a scheduled task Reply with quote

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 View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Mon Aug 15, 2005 12:13 am    Post subject: Re: Running a PHP script as a scheduled task Reply with quote

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 View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Mon Aug 15, 2005 2:50 am    Post subject: Reply with quote

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 View user's profile Send private message AIM Address
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Mon Aug 15, 2005 4:12 am    Post subject: Reply with quote

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 View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Mon Aug 15, 2005 5:39 am    Post subject: Reply with quote

Oh I believe theres a windows version of Cron (linux version of Schudeled Tasks).

http://www.kalab.com/freeware/cron/cron.htm

I was right.
_________________
Back to top View user's profile Send private message AIM Address
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Aug 15, 2005 2:19 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group