note 110927 deleted from function.shell-exec by danbrown

From: Date: Thu, 17 Jan 2013 15:30:51 +0000
Subject: note 110927 deleted from function.shell-exec by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193154@lists.php.net to get a copy of this message
Note Submitter: jimmetry at gmail dot com ---- Several people have added notes here saying that collecting standard error is as simple as adding 2>&1 to the end of your command. In most cases, yes, this works fine. However, when working with subshells (including running shell scripts), this does NOT seem to work. I do not know why. If you're finding that shell_exec() never exists, this could be why.

« previous php.notes (#193154) next »