note 100269 added to function.exec

From: Date: Tue, 05 Oct 2010 11:29:22 +0000
Subject: note 100269 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-172967@lists.php.net to get a copy of this message
The output parameter gets only standard output, if you need error output too, don't forget to redirect it. If the output parameter is still empty after an execution and if it shouldn't, you must be in this case. <?php $out = array(); exec = ('ls /ver 2>&1', $out); print_r($out); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 208.51.184.34 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/100269 Del: integrated -- https://master.php.net/note/delete/100269/integrated Del: useless -- https://master.php.net/note/delete/100269/useless Del: bad code -- https://master.php.net/note/delete/100269/bad+code Del: spam -- https://master.php.net/note/delete/100269/spam Del: non-english -- https://master.php.net/note/delete/100269/non-english Del: in docs -- https://master.php.net/note/delete/100269/in+docs Del: other reasons-- https://master.php.net/note/delete/100269 Reject -- https://master.php.net/note/reject/100269 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172967) next »