preventing output dump of passthru()

From: Date: Tue, 05 Aug 2003 23:55:50 +0000
Subject: preventing output dump of passthru()
Groups: php.general 
Request: Send a blank email to php-general+get-158372@lists.php.net to get a copy of this message
Hello, Trying to prevent the output dumping of passthru() and instead store the output in a variable. I read an article that suggested this: ob_start(); passthru("command"); $output = ob_get_contents(); ob_end_clean(); But that didn't work. Is there *ANY* way to achieve what I want? Thanks, Chris.

« previous php.general (#158372) next »