note 52770 deleted from function.system by cmb

From: Date: Sun, 08 Dec 2019 11:49:29 +0000
Subject: note 52770 deleted from function.system by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213490@lists.php.net to get a copy of this message
Note Submitter: Stuart Prescott ---- Note that for stderr redirection, you have to use double quotes (") not single quotes (') for the 2>&1 part at least. <? //e.g. the this will NOT do what you expect: exec('mysqldump -h localhost ...... 2>&1', $output); //but this will: exec("mysqldump -h localhost ...... 2>&1", $output); ?> *sigh* (Sounds like a PHP bug to me..., or at least buggy docs!)

« previous php.notes (#213490) next »