I am trying to use system() to run an external command and have the output
placed into a variable using:

        $output = system("/usr/local/bin/somecommand");

the output is placed into $output, and it also places it instream with the
HTML.  Anyone know why this is happening? or how to properly put data from
STDOUT into a variable?

Any help is appreciated.

Mike Robbins


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to