[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing command line output to html through php




Charles Menzes wrote:
> 
> I am playing around with using php to pass command line output into an
> html document. For example, displaying the output of the "w" command to a
> web page.
> When I do this, and have multiple people logged in, the output is not
> diplayed in rows as it is from the command prompt, but is written as a
> single line in the html doc. Is there a simple manner of correcting this?

It's most likely got \n's for the returns, view the source to see. 
You'll either have to wrap it around <PRE>, or transform those into
<BR>'s.

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.