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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
15 matches
Mail list logo