note 99929 added to function.exec

From: Date: Wed, 15 Sep 2010 16:26:04 +0000
Subject: note 99929 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-172582@lists.php.net to get a copy of this message
The way of florin from syneto net (25-Nov-2009 03:06) "to initialize $output before calling exec() on the same line" is incorrect. Don't use exec like this: exec($command, $output = array()); because $output=array() will just overwrite your application's output and you'll get empty array. ---- Server IP: 69.147.83.197 Probable Submitter: 78.26.172.202 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/99929 Del: integrated -- https://master.php.net/note/delete/99929/integrated Del: useless -- https://master.php.net/note/delete/99929/useless Del: bad code -- https://master.php.net/note/delete/99929/bad+code Del: spam -- https://master.php.net/note/delete/99929/spam Del: non-english -- https://master.php.net/note/delete/99929/non-english Del: in docs -- https://master.php.net/note/delete/99929/in+docs Del: other reasons-- https://master.php.net/note/delete/99929 Reject -- https://master.php.net/note/reject/99929 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172582) next »