Page 1 of 1
cron jobs
Posted: Fri Dec 19, 2008 5:26 am
by kiranaryan22
I can open a php file using cron on windows using task scheduler. but cannot run the php file
Re: cron jobs
Posted: Fri Dec 19, 2008 6:24 am
by Mark Baker
Well, assuming that you have PHP on your windows box, the program to run is
\<path>\<to>\<php>\php.exe <scriptname.php>
And that should work
Double check the start directory: you may want it to be the directory where your script sits, so that any relative includes are picked up, and you may also want to check what php.ini file is being used for CLI php