Re: [PHP] Scheduling PHP on Windows

2004-03-22 Thread imran asghar
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: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Scheduling PHP on Windows

2004-03-21 Thread trlists
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