Re: system command

From: Date: Tue, 24 Aug 2004 13:08:50 +0000
Subject: Re: system command
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-194572@lists.php.net to get a copy of this message
Ron Clark wrote:
Daniel Schierbeck wrote:
Ron Clark wrote:
Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message.
ob_get_clean() is preferable:
    $output = ob_get_clean(); // Gets the buffered output and cleans the buffer
Didn't need the contents of the buffer. All I needed was the last line which was contained in $output = system(....). Sorry, my bad...
-- Daniel Schierbeck

« previous php.general (#194572) next »