Page 1 of 1

flush with trace

Posted: Sun Aug 10, 2003 4:00 am
by GK
Hi all

is it possible to use flush for this output or something else?
ot takes a lot of time before outputting it all

Code: Select all

<? 
echo nl2br(`traceroute $ipdomein`);
?>

Posted: Sun Aug 10, 2003 4:41 am
by JAM
Might ob_start() and ob_end_flush() solve your problem?

Posted: Sun Aug 10, 2003 5:20 am
by GK
how would u use it then?

Posted: Sun Aug 10, 2003 5:31 am
by JAM
Sorry, I think I missunderstood your question here...

Apparently, you can (example) but how you would code the traceroute function its up to you.

http://se2.php.net/flush

Posted: Sun Aug 10, 2003 5:38 am
by GK
mm thats my problem

i dont know how to reprogram the traceroute so i can output 1 line at a time

Posted: Sun Aug 10, 2003 6:49 am
by JAM