Forum Moderators: coopster
cd <dir where scripts are>
php task1.php
php task2.php
php task3.php
and save the file as tasks.bat. Now you add a scheduled task by going to Start->All programs->Accessories->System tools->Scheduled tasks
Click add scheduled task and follow the rather simple step-by-step wizard. When it asks for which program to execute, locate your bat file. The bat-file above assumes you have the php executable in your system path. If not, either add it (Right click My computer, Advanced, Environment variables - path) or do
C:\php\bin\php.exe task1.php
in your bat file. If you're on Linux, you'll need to check up crontabs, which someone else can explain better than me...
However, the script is external on a server...can the batch file still work if it points to [domain.com...]
Thanks again!
log in via ssh and type crontab -l to list your crons, 'man crontab' for detailed instructions.
my crontab looks like
0 6 * * * wget -q http://www.example.com/follow_up.php
0 3 * * * wget -q http://www.example.com/reminder.php
[edited by: coopster at 6:28 pm (utc) on Oct. 10, 2005]
[edit reason] removed ulr per TOS [webmasterworld.com] [/edit]