note 22597 deleted from function.shell-exec by cmb

From: Date: Sun, 14 Jul 2019 11:35:00 +0000
Subject: note 22597 deleted from function.shell-exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211591@lists.php.net to get a copy of this message
Note Submitter: php at chris-decker dot com ---- 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));

« previous php.notes (#211591) next »