troubleshooting Question

How to display result of a PHP script one by one?

Avatar of Vipin Kumar
Vipin KumarFlag for India asked on
15 Comments1 Solution1752 ViewsLast Modified:

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.
Gregory Miller

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros