note 34522 added to function.shell-exec

From: Date: Tue, 29 Jul 2003 23:04:50 +0000
Subject: note 34522 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-52971@lists.php.net to get a copy of this message
Good ideas given below on how to make output from an exec() look exactly like you would see it on a terminal. In a browser remember to put echo "<pre>"; foreach( $output as $outputLine ) { echo htmlspecialchars( $outputLine ); } echo "</pre>"; P.S. Tested on Windows 2000 only. ---- Manual Page -- http://www.php.net/manual/en/function.shell-exec.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34522 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34522&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34522&report=yes

« previous php.notes (#52971) next »