Wed Mar 12 22:35:06 NZDT 2003
just like in perl
From: kyle carter [mailto:kyle@f...]
Sent: Wednesday, 12 March 2003 10:29 p.m.
Subject: [wlug] a very simple php question that just has my brain
ok.. php question
all i want to do is display the output of the route command on a
now this is what i thought would be VERY simple in php, however im just
thinking about it right im sure.
nl2br(passthru(route)); i thought would be about all i needed so far i
get the results using various methods, however none of them allows me to
nl2br to make it display nice on a html page (convert all the \n to
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
sample ways i have tried all appended into one php script.
ereg_replace("(\r\n|\n|\r)", "<br />", system(route));
wlug mailing list
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.