note 18124 deleted from function.exec by danbrown

From: Date: Sun, 04 Jan 2009 16:38:10 +0000
Subject: note 18124 deleted from function.exec by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148822@lists.php.net to get a copy of this message
Note Submitter: ---- When using escapeshellcmd and the stderr to stdout redirect '2>&1'. Append '2>&1' to the call to escapeshellcmd not within it, otherwise the returning string is empty rather than containing the error. $cmd = escapeshellcmd("...")." 2>&1"; $string = exec($cmd,$array,$integer);

« previous php.notes (#148822) next »