note 52770 added to function.system

From: Date: Thu, 12 May 2005 05:14:40 +0000
Subject: note 52770 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-89299@lists.php.net to get a copy of this message
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!) ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52770 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52770&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52770&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52770&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52770&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52770&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52770&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#89299) next »