system() and stdout

From: Date: Sun, 04 Mar 2001 16:53:21 +0000
Subject: system() and stdout
Groups: php.general 
Request: Send a blank email to php-general+get-42511@lists.php.net to get a copy of this message
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

« previous php.general (#42511) next »