RE: [PHP-WIN] Prevent error output from shell_exec
| From: | Paul J. Smith | Date: | Sat, 22 May 2004 21:40:35 +0000 |
| Subject: | RE: [PHP-WIN] Prevent error output from shell_exec | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-23806@lists.php.net to get a copy of this message | ||
Thanks. Tried that, but it still outputs the error.
I tried shell_exec and system. Same result :(
-----Original Message-----
From: Jeroen Serpieters [mailto:jeroen@lunitechs.com]
Sent: 22 May 2004 19:13
To: Paul J. Smith
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] 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