Does anyone have a simple solution for scheduling PHP tasks running in IIS?
I have a php script which backs up our databases and emails to our backup address on a separate server.
I have admin access to the server. Thanks!
Does anyone have a simple solution for scheduling PHP tasks running in IIS?
I have a php script which backs up our databases and emails to our backup address on a separate server.
I have admin access to the server. Thanks!
Assuming that you can run PHP from the command line, just set these jobs using the Windows Task Scheduler, they can be configured from Control Panel/Scheduled Tasks.
A typical task might look something like:
C:\PHP\php.exe -f BOINCStats.php
with the "Start in" directory set as
C:\PHP
You can find full details for running PHP from the command line in the manual
EDIT
If you create a .bat file, you might like to ensure that it references a specific php.ini
e.g.
C:\xampp\php\php -c \xampp\php\php5CLI.ini %1 %2 %3 %4 %5 %6 %7 %8 %9