Re: format output from exe()

From: Date: Wed, 05 Dec 2001 12:34:59 +0000
Subject: Re: format output from exe()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76707@lists.php.net to get a copy of this message
Hello, I did this once with ping: exec("ping -c $count $host", $result); for ($i=0; $i < count($result); $i++) { $data .= "$result[$i]<br>"; } print "$data"; That might work for ya. Good luck, Tyler Longren ----- Original Message ----- From: "Daniel Masur" <d.masur@d-s-a-g.de> To: <php-general@lists.php.net> Sent: Wednesday, December 05, 2001 5:50 AM Subject: [PHP] format output from exe() > how can i format the output from: > > $who = passthru(system(who)); > echo $who; > > it doesnt put breakes behind each line, so all the stuff iss just one line > till the browsers to short... > > anybody can help? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#76707) next »