On W3K you could use this as the run line in Scheduled Tasks and probably the same in XP although I have not tested this. The same components exist in the W2K version although may be in different locations/names.
Run: cmd /c "c:\php\php.exe -q c:\path\to\php\file.php"
Start in: C:\path\to\php\file\
Run as: username/pass with security acess to both php.exe and the file.php
YMMV
pjn
----- Original Message ----- From: "Jochem Maas" <jochem@xxxxxxxxxxxxx>
To: <phpgen@xxxxxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Friday, February 18, 2005 10:06 PM
Subject: Re: Crontab for Windows
bob wrote:Hi,
I am trying to schedule the running of some PHP scripts on my Win2K PC at home.
On my live server I use Linux, so am fully familiar with Crontab. I am not that familiar with running scripts using the scheduler in Win2K though.
So far what I have is:
C:\php\php.exe -q c:\path\to\php\file.php
what happens if you quote everything?:
"C:\php\php.exe" "-q" "c:\path\to\php\file.php"
But this doesn't seem to do anything..the task manager in the windows scheduler just keeps saying that the task has not been run.
Any suggestions?
Also, one thing I would like my script to do is to send out an email, but I don't have a mail server set up on my home PC..is there anyway to run a script from a server on a different machine, using Windows scheduler, and if so, what form would the 'path' to the file/server take?
Many thanks Alexis
-- 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