popen output to 2 dimensional array

All,

I am using popen to run traceroute, then fgets on the buffer and am failing to get the results into a 2 dimensional array. Capturing and echoing the popen buffer is easy. Formatting the results with paragraph tags so it’s pretty is done. But splitting each hop result by row into the 4 fields I want is breaking my patience. Any ideas?

Thanks,

ATG

Sponsor our Newsletter | Privacy Policy | Terms of Service