Re: format output from exe()
| From: | Daniel Masur | Date: | Wed, 05 Dec 2001 14:48:26 +0000 |
| Subject: | Re: format output from exe() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76722@lists.php.net to get a copy of this message | ||
worked wunderfull.
thx
"Tyler Longren" <tyler@captainjack.com> schrieb im Newsbeitrag
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++) {
> $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
> >
> >
>