This code:
$ip1 = `/usr/bin/dig $host1`;
$ip2 = `/usr/bin/dig $host2`;
$ip3 = `/usr/bin/dig $host3`;
run one by one. The problem is the dig response speed is random. It could be fast or it could be more than 10 sec. My question is how can I run this 3 line of code simultaneously on the same page?
I'm willing to accept other approach like running in 3 different pages. I have an array_chunk($input_array, 3)
. $input_array
is a result from mysql query that contains value which I could run in 3 different lookup above. I split the query into 3 parts. Now the problem is I don't know how to send the 3 parts to 3 different pages and run the dig lookup. I only know how to do it with form. That's why I shown you the code above. I'm blank right now.
Please help me. Thanks in advance.