RE: Prevent error output from shell_exec

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

 



Thanks.  Tried that, but it still outputs the error.

I tried shell_exec and system.  Same result :(
 

-----Original Message-----
From: Jeroen Serpieters [mailto:jeroen@xxxxxxxxxxxxx] 
Sent: 22 May 2004 19:13
To: Paul J. Smith
Cc: php-windows@xxxxxxxxxxxxx
Subject: RE:  Prevent error output from shell_exec

On Sat, 22 May 2004, Paul J. Smith wrote:

>
> Any other ideas?
>

If you just want to prevent the error showing up in the output of yout
php
script you could use output buffering.

e.g.:

ob_start(); // start buffering

system(....); // execute your stuff

ob_end_clean(); // silently discard the output

-- 
Jeroen

Mostly, when you see programmers, they aren't doing anything.
One of the attractive things about programmers is that you cannot tell
whether or not they are working simply by looking at them.
Very often they're sitting there seemingly drinking coffee and
gossiping, or just staring into space.
What the programmer is trying to do is get a handle on all the
individual and unrelated ideas that are scampering around in his head.
	-- Charles M Strauss

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




-- 
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