note 22597 added to function.shell-exec

From: Date: Mon, 24 Jun 2002 15:12:32 +0000
Subject: note 22597 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-32151@lists.php.net to get a copy of this message
I have found it easiest to use the following code to execute a shell command and return all of it's output (not just the last line) to the user as if he/she were sitting at the terminal: $output = shell_exec("$command"); echo(nl2br($output)); -- http://www.php.net/manual/en/function.shell-exec.php http://master.php.net/manage/user-notes.php?action=edit+22597 http://master.php.net/manage/user-notes.php?action=delete+22597 http://master.php.net/manage/user-notes.php?action=reject+22597

« previous php.notes (#32151) next »