Re: Scheduling PHP on Windows
| From: | trlists at clayst dot com | Date: | Sun, 21 Mar 2004 16:52:37 +0000 |
| Subject: | Re: Scheduling PHP on Windows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181089@lists.php.net to get a copy of this message | ||
On 20 Mar 2004 Ben Ramsey wrote:
> I know how to run a PHP script as a cron job on a *nix machine. So,
> does anyone know how to use the Task Scheduler on Windows to do the
> same? Or is it even possible?
The fundamental idea is simple -- work out a command line from a
regular command prompt that does what you want. Then set it up under
Control Panel / Scheduled Tasks. You will have to specifically invoke
cmd.exe if you want to redirect the output, for example here's a
command line I just tried that worked properly:
m:\winnt\system32\cmd.exe /c h:\php\cli\php.exe test4.php >> c:\x.txt
--
Tom