My nearish psuedo code: -
for ($i = 1; $i < 5; $i++) {
exec("C:\wamp\www\googletodaybatch.bat");
echo $i;
}
The bat file contains the following: -
START C:\wamp\bin\php\php5.5.12\php.exe -f "C:\wamp\www\googletoday-task.php"
I want to use this way instead of include file as I need it to start 5 instances of the task. Each instance takes 2 mins. So I don't want it to wait. It updates many databases all at the same time.
Do I use "exec" or "shell_exec"?
Summary: - Instead of having many lines in my bat file that are all the same, I want one line running many times using a loop from PHP.
Help please! The code above seems to just keep loading and never stops....