RE: Prevent error output from shell_exec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux