RE: [PHP] html output from system() command

From: Date: Fri, 06 Dec 2002 20:44:21 +0000
Subject: RE: [PHP] html output from system() command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127325@lists.php.net to get a copy of this message
If you try viewing the source of the webpage it will probably show up correctly. If this is the case, try putting the output into a variable and passing it to the nl2br() function. Echo nl2br($commandoutput); And/or make your way to http://www.php.net/manual/en/function.nl2br.php Bronson_AT_udatasystems.com -----Original Message----- From: Clay Stuckey [mailto:tcs@chacity.org] Sent: Friday, December 06, 2002 3:41 PM To: Php Subject: [PHP] html output from system() command When I execute: system('who'); I get the output to the screen but it is all concatenated together like this: root pts/0 Dec 6 15:31 (34-218-228-130.arpa.kmail.net) sneakytrick pts/1 Dec 6 10:22 (34-218-228-130.arpa.kmail.net) How can I make it look like: root pts/0 Dec 6 15:31 (34-218-228-130.arpa.kmail.net) sneakytrick pts/1 Dec 6 10:22 (34-218-228-130.arpa.kmail.net) ------------------------------------------ Clay Stuckey - RHCE, CCNA, MCSE Charleston Housing Authority - MIS Manager tcs@chacity.org ------------------------------------------ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#127325) next »