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:[EMAIL PROTECTED]] 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 [EMAIL PROTECTED] ------------------------------------------ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php