I am trying to get multiple php scripts to run in Parallel. I am running WAMP meaning no easy access to bash or cronjobs. Hence the attempt to make this work using php only.
<?php
include("test2.php");
include("test3.php");
include("test4.php");
?>
but the test files have a wait command before outputting a line of code. When I run this, it waits for each individual php to finish it's wait time before moving on. I want them to all run at the same time (parallel)
I also tried
system('C:\wamp\bin\php\php5.4.3 test2.php &');
The goal is to make the script run these scripts in parallel, wait for them to finish running in parallel and output an echo that says finished. Am I missing something?
One more thing to think about, if you want this to run in a circle, just add this to the header. It will wait for the iFrames to load and then move to the next page.
<body onload=window.location='parsethem.php'>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With