RE: [PHP-WIN] Prevent error output from shell_exec

From: Date: Sat, 22 May 2004 18:15:49 +0000
Subject: RE: [PHP-WIN] Prevent error output from shell_exec
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-23801@lists.php.net to get a copy of this message
On Sat, 22 May 2004, Jeroen Serpieters wrote: > > e.g.: > > ob_start(); // start buffering > > system(....); // execute your stuff > > ob_end_clean(); // silently discard the output > If you want to log the output you could grab the buffered output with ob_get_contents(), save it somewhere and then do ob_clean() -- Jeroen Describing the difference between computer hardware and software: "Those parts of the system that you can hit with a hammer (not advised) are called hardware; those program instructions that you can only curse at are called software." -- From Levitating Trains and Kamikaze Genes

« previous php.windows (#23801) next »