Running a PHP script from DOS

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
holdech
-


Joined: 23 Nov 2005
Posts: 4

PostPosted: Wed Nov 23, 2005 10:51 pm    Post subject: Running a PHP script from DOS Reply with quote

Hi all,

I need to be able to run a PHP script from some form of scheduling software (Windows or nncron etc).

This would approximate running it from a DOS prompt.

Can this be done on the Windows platform with Abyss?

Thanks

Chris
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Wed Nov 23, 2005 11:13 pm    Post subject: Reply with quote

Hi Chris--

There is a window version of cron that I use.
You can create a .bat file and execute most scheduled tasks.

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

Regards,
Axis
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Nov 24, 2005 12:09 pm    Post subject: Re: Running a PHP script from DOS Reply with quote

holdech,

You can use the Windows Scheduled Tasks tool (in Windows Control Panel). Configure it to run at regular intervals of time the command line:

Code:
C:\path\to\php.exe D:\path\to\script.php

_________________
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 -> PHP 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