Re: Scheduling PHP on Windows
| From: | imran asghar | Date: | Mon, 22 Mar 2004 12:07:28 +0000 |
| Subject: | Re: Scheduling PHP on Windows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181126@lists.php.net to get a copy of this message | ||
hi,
I do this task on window thru schedule task as,
First I create BATCH file
File.bat::
@ECHO OFF
c:\php\php -q c:\dailyscript\script.php
then I added this file.bat path into schedule Task for specify time
interval
imran
----- Original Message -----
From: <trlists@clayst.com>
To: <php-general@lists.php.net>
Sent: Sunday, March 21, 2004 9:52 PM
Subject: Re: [PHP] Scheduling PHP on Windows
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>