Re: system command

From: Date: Tue, 24 Aug 2004 13:03:21 +0000
Subject: Re: system command
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-194571@lists.php.net to get a copy of this message
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(....).
-- Ron Clark System Administrator/Web Coordinator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353

« previous php.general (#194571) next »