Re: [PHP] format output from exe()

2001-12-05 Thread Daniel Masur
worked wunderfull. thx "Tyler Longren" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 005101c17d89$42085b40$0101a8c0@Longren">news:005101c17d89$42085b40$0101a8c0@Longren... > Hello, > > I did this once with ping: > exec("ping -c $count $host", $result); > for ($i=0; $i < count($result); $i++) { >

RE: [PHP] format output from exe()

2001-12-05 Thread Peter Johansson M (PAC)
Daniel Masur wrote: > 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... Try this: echo "$who"; Or substitute those newlines with the equivalent html-l

Re: [PHP] format output from exe()

2001-12-05 Thread Tyler Longren
Hello, I did this once with ping: exec("ping -c $count $host", $result); for ($i=0; $i < count($result); $i++) { $data .= "$result[$i]"; } print "$data"; That might work for ya. Good luck, Tyler Longren - Original Message - From: "Daniel Masur" <[EMAIL PROTECTED]> To: <[EMAIL PROTE