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

2004-05-24 Thread Gryffyn, Trevor
t this for your ight now. Let us know what you find. -TG > -Original Message- > From: Paul J. Smith [mailto:[EMAIL PROTECTED] > Sent: Saturday, May 22, 2004 6:16 PM > To: Svensson, B.A.T. (HKG) > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Prevent error output from she

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

2004-05-23 Thread Svensson, B.A.T. (HKG)
I know. ;) -Original Message- From: Paul J. Smith To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED] Sent: 23-5-2004 14:38 Subject: RE: [PHP-WIN] Prevent error output from shell_exec That did the trick. Many thanks! -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe

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

2004-05-23 Thread Paul J. Smith
That did the trick. Many thanks! -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] Sent: 23 May 2004 12:01 To: '[EMAIL PROTECTED] ' Subject: RE: [PHP-WIN] Prevent error output from shell_exec The reason why popen() does not work for you is becau

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

2004-05-23 Thread Svensson, B.A.T. (HKG)
for eitehr reading or (an exlusive or) writing. Hence popen() will not help you here, in such case you should use proc_open(). cheers -Original Message- From: Paul J. Smith To: Svensson, B.A.T. (HKG) Cc: [EMAIL PROTECTED] Sent: 23-5-2004 0:15 Subject: RE: [PHP-WIN] Prevent error outpu

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

2004-05-22 Thread Paul J. Smith
t: 22 May 2004 22:59 To: '[EMAIL PROTECTED] ' Subject: RE: [PHP-WIN] Prevent error output from shell_exec I can guarante you that popen() does work - I use it myself on a win2003 server. Since you can use shell_exec() I assume this has nothing to do with safe_mode being switched on. How

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

2004-05-22 Thread Svensson, B.A.T. (HKG)
To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED] Sent: 22-5-2004 23:47 Subject: RE: [PHP-WIN] Prevent error output from shell_exec I tried popen, but it doesn't run the program. I'm not sure popen works on win platforms? -Original Message- From: Svensson, B.A.T. (HKG) [mai

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

2004-05-22 Thread Paul J. Smith
I tried popen, but it doesn't run the program. I'm not sure popen works on win platforms? -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] Sent: 22 May 2004 22:36 To: '[EMAIL PROTECTED] ' Subject: RE: [PHP-WIN] Prevent error output from

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

2004-05-22 Thread Paul J. Smith
Thanks. Tried that, but it still outputs the error. I tried shell_exec and system. Same result :( -Original Message- From: Jeroen Serpieters [mailto:[EMAIL PROTECTED] Sent: 22 May 2004 19:13 To: Paul J. Smith Cc: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Prevent error output from

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

2004-05-22 Thread Svensson, B.A.T. (HKG)
Or maybe you just want to do: @shell_exec(...) ? -Original Message- From: Svensson, B.A.T. (HKG) To: '[EMAIL PROTECTED] ' Sent: 22-5-2004 23:36 Subject: RE: [PHP-WIN] Prevent error output from shell_exec Have you tried this with popen()? -Original Message- Fr

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

2004-05-22 Thread Svensson, B.A.T. (HKG)
Have you tried this with popen()? -Original Message- From: Paul J. Smith To: Jeroen Serpieters Cc: [EMAIL PROTECTED] Sent: 22-5-2004 20:10 Subject: RE: [PHP-WIN] Prevent error output from shell_exec Thanks. Spot the deliberate mistake ;) Unfortunately, in my case, it doesn't wor

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

2004-05-22 Thread Jeroen Serpieters
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 th

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

2004-05-22 Thread Jeroen Serpieters
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 o

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

2004-05-22 Thread Paul J. Smith
Smith Subject: Re: [PHP-WIN] Prevent error output from shell_exec On Sat, 22 May 2004, Paul J. Smith wrote: > I've tried >null and various other things to no > effect. Anyone know how to do this on a windows platform? > Redirecting to NUL (not null) should do the trick.

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

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Paul J. Smith wrote: > I've tried >null and various other things to no > effect. Anyone know how to do this on a windows platform? > Redirecting to NUL (not null) should do the trick. -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers w

[PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Paul J. Smith
Hi, I'm looking for a way to _silently_ execute system commands via php. All the silent commands seem to dump the output to the page if an error value is returned. I've tried >null and various other things to no effect. Anyone know how to do this on a windows platform? Thanks. -- PHP Windows