note 72672 added to ref.exec

From: Date: Mon, 29 Jan 2007 14:52:59 +0000
Subject: note 72672 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-122317@lists.php.net to get a copy of this message
Here is a way to collect all the output of a command (standard output and standard error): $command="your command goes here"; $output=shell_exec($command." 2>&1"); //system call print "<pre>$output</pre>\n"; //show output ---- Server IP: 130.206.1.5 Probable Submitter: 130.206.71.43 ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- https://master.php.net/note/edit/72672 Del: integrated -- https://master.php.net/note/delete/72672/integrated Del: useless -- https://master.php.net/note/delete/72672/useless Del: bad code -- https://master.php.net/note/delete/72672/bad+code Del: spam -- https://master.php.net/note/delete/72672/spam Del: non-english -- https://master.php.net/note/delete/72672/non-english Del: in docs -- https://master.php.net/note/delete/72672/in+docs Del: other reasons-- https://master.php.net/note/delete/72672 Reject -- https://master.php.net/note/reject/72672 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#122317) next »