Thu Mar 13 12:12:39 NZDT 2003
Use the <pre> or <code> tags??
Then you don't need to use nl2br();
On Wed, 2003-03-12 at 22:28, kyle carter wrote:
> ok.. php question
> all i want to do is display the output of the route command on a webpage...
> now this is what i thought would be VERY simple in php, however im just not
> thinking about it right im sure.
> nl2br(passthru(route)); i thought would be about all i needed so far i can
> get the results using various methods, however none of them allows me to use
> nl2br to make it display nice on a html page (convert all the \n to <br>).
> what SIMPLE thing am i not thinking of. passthru sends it direct to the
> browser no allowing any manipulation... exec only displays the last line of
> sample ways i have tried all appended into one php script.
> echo $test;
> ereg_replace("(\r\n|\n|\r)", "<br />", system(route));
Oliver Jones > Senior Software Engineer > Deeper Design Limited.
oliver@d... > www.deeperdesign.com > +64 (21) 41-2238
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the wlug
NOTICE: This is an archive of a public mailing list. The University of Waikato is not responsible for its contents.