RE: [PHP-WIN] Prevent error output from shell_exec
| From: | Jeroen Serpieters | Date: | Sat, 22 May 2004 18:13:15 +0000 |
| Subject: | RE: [PHP-WIN] Prevent error output from shell_exec | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-23800@lists.php.net to get a copy of this message | ||
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