note 85225 deleted from function.exec by cmb

From: Date: Sun, 24 Nov 2019 08:53:31 +0000
Subject: note 85225 deleted from function.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213212@lists.php.net to get a copy of this message
Note Submitter: aurora-glacialis at gmx dot de ---- The article on exec() tells you to use passthrough() if you want to get more than the last line of output from a command. However mor appropriate would be to refer to shell_exec(), since passthrough will output the result (just like print()) whereas shell_exec() will give the whole output as a $string, which is more likely the thing you want if you are not content with exec() delivering only the last line as $string

« previous php.notes (#213212) next »