RE: [PHP] format output from exe()

From: Date: Wed, 05 Dec 2001 12:53:56 +0000
Subject: RE: [PHP] format output from exe()
Groups: php.general 
Request: Send a blank email to php-general+get-76709@lists.php.net to get a copy of this message
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 "<pre>$who</pre>"; Or substitute those newlines with the equivalent html-lingo (<br>) with: echo nl2br($who); ./peter - Svenska PHP-listan: http://www.kanalen.org/mailinglistor.php

« previous php.general (#76709) next »