How to display result of a PHP script one by one?
Posted on 2013-12-31
I have a created a script which pings the devices and show the result. But there are around 100+ devices in the list and once I start the script it pings all devices and then show the result, which approximately takes 15 to 20 min.
I would be thankful if someone could tell me a way to display the output of the script one by one i.e. ping a device then show its result and then move to the next device and so on. But the result of all devices should be there on the page.
I have already tried ob_flush(); ob_start(); and flush(); but I could not get the expected result.
Thanks in advance.